Questions tagged [static-content]

Static content generally refers to additional files or media that is delivered to browsers but not generated through the web application. Examples include images, script files, and stylesheets.

246 questions
15
votes
2 answers

Difference between Cloudflare CDN and NGINX

I am reading but having hard time understand difference between the two. I am using Heroku for my apps and until now I was using NGINX to serve my content. I precompressed my static files to gzip and served them like that, turning off dynamic…
Igor-Vuk
  • 3,551
  • 7
  • 30
  • 65
15
votes
6 answers

Can DropWizard serve assets from outside the jar file?

In looking at the documentation, it appears that DropWizard is only able to serve static content living in src/main/resources. I'd like to keep my static files in a separate directory outside the jar file. Is that possible? Or do most people use…
zslayton
  • 51,416
  • 9
  • 35
  • 50
14
votes
1 answer

ASP.Net MVC - Why is a controller being created for favicon.ico?

I am using a custom ControllerFactory (to use Castle Windsor's IOC to create controllers), and I notice it's getting requests to create a controller for "favicon.ico". I have put a favicon.ico file in my Content folder, but I'm still getting these…
ripper234
  • 222,824
  • 274
  • 634
  • 905
12
votes
2 answers

Simplest way to use openid as authentication for static content

I have a private website used as an intranet site for workers from around the world who have accounts with my Google Apps domain (example.com). They currently use OpenId to log in to various collaborative tools, so I want to use this for my site…
Ash
  • 1,266
  • 4
  • 14
  • 24
11
votes
2 answers

How to prevent ASP.NET MVC from handling Static files (js and images) on Windows Azure?

I have an ASP.NET MVC application that is hosted on Windows Azure and all the static files served from the website are being processed by ASP.NET. Is there a way to get IIS to serve the static files directly and not route those requests through…
Chris Pietschmann
  • 29,502
  • 35
  • 121
  • 166
11
votes
4 answers

What exactly does the staticcontent tag in the web.config file apply to?

I've been reading about the staticContent element in the web.config file but I'm having a bit of trouble figuring out exactly what ASP.Net considers static content. I assume it's going to include images, js files, css and static html files but I…
Spencer Ruport
  • 34,865
  • 12
  • 85
  • 147
10
votes
3 answers

Spring Boot images uploading and serving

I'm making new Spring Boot app and want to be able to store and serve images, I want images to be stored in applications directory: this is what uploading looks like for now: @PostMapping("/") @ResponseBody public String upload(@RequestPart String…
Weras Adve
  • 155
  • 2
  • 2
  • 8
10
votes
1 answer

What should Apache serve and what should Tomcat serve?

I'm trying to set up Apache in front of Tomcat. What do I have Apache serve? I know Apache works better for static pages and images. I currently deploy a war file in Tomcat that contains static pages, images, and Flash files. Should I put those…
George
  • 3,251
  • 7
  • 32
  • 39
10
votes
1 answer

Does NancyFX support static content caching via the ETag and Last-Modified headers?

I want my static content (images, javascript files, css files etc) to served in full only after the file has been updated. If a file has not changed since it was last requested (as determined by the ETag and Last-Modified response header values)…
biofractal
  • 18,963
  • 12
  • 70
  • 116
9
votes
2 answers

IIS Express Not Serving Static Files Over Basic Authentication

I have a ASP.NET WEB API 2 application which was configured to use Windows Integrated Authentication and was working without an issue. When I change the authentication mode to basic, none of the static files are served by IIS Express. Instead it…
Jail
  • 880
  • 2
  • 15
  • 29
9
votes
1 answer

What's the diff btween src/main/resources and src/main/webapp/resources?

I have a Spring MVC 3.0 project, using Maven, generated right from Eclipse's New -> Project -> Spring Project -> Spring MVC Project. However, I see two resources folders, one directly under src/main and another one level deeper under…
David Neuschulz
  • 113
  • 1
  • 8
8
votes
4 answers

RSS for a static site

I have a site, deanvmc.me that I am using to teach myself HTML, CSS and JavaScript. The site is purposely static to strip my learning down to bear bones (The best way to learn I feel). I am using github as the host to further lock me down to…
deanvmc
  • 5,957
  • 6
  • 38
  • 68
8
votes
1 answer

Packing static content in Nuget for PackageReferece projects

I have a Class Library (net47) project and I'd like to pack into a nuget my dll and several files of static content (js, css, images...). I want to use this dll and the content from the consumer projects. These projects will be MVC PackageReference…
Alpha75
  • 2,140
  • 1
  • 26
  • 49
8
votes
1 answer

How to serve static content using Spock (Haskell)?

I am running a Spock server and wanting to serve some static content. I am using respondMiddleware function from the "Web.Spock.Action" package. The signature is: respondMiddleware :: Monad m => Middleware -> ActionCtxT ctx m a I am getting…
8
votes
1 answer

how to create a VirtualHost to serve only static content

I want to create a virtual host in apache such that it serves only static content like stylesheets, videos, images, javascripts, text files, etc. I am not looking at any "processing" capabilities from this virtual host.
deostroll
  • 11,661
  • 21
  • 90
  • 161
1
2
3
16 17