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.
Questions tagged [static-content]
246 questions
7
votes
1 answer
Express: How to serve font-awesome as static content?
I use express to serve static content on my site and I want to incorporate FontAwesome (npm install font-awesome). However in Font-Awesome's css the links to the font files are appended with a query-string containing versioning information witch…

Aage Torleif
- 1,907
- 1
- 20
- 37
6
votes
1 answer
Downsides to using querystrings to version static files?
It seems that in order to force users to refresh cached static files (e.g., .css, .js) some sites (e.g., stackoverflow.com) append querystrings to the end of files. For example:

Jones
- 63
- 3
6
votes
1 answer
Reloading the static files in Spark/Jetty-server
I have a bit similar problem described here:
Refresh static files served by SparkJava
In my application user can upload the content to one folder that is also served to user with
Spark.staticFileLocation("/public");
feature. I've understood that…

samu
- 1,936
- 4
- 22
- 26
5
votes
5 answers
django-pipeline and s3boto storage don't seem to work together
I'm trying to use django-pipeline-1.1.27 with s3boto to compress and filter static files, and then upload them to an s3 bucket. If I just use:
PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
Then it works and I get a static folder with…

StevenC
- 1,172
- 1
- 9
- 17
5
votes
1 answer
Setting the "Expire Web Content" common http response header in IIS
We have a fairly high-volume IIS7.0 site (about 1 million requests a day), a lot of which are Images/CSS/JS.
As a quick way to reduce this, I'm considering setting the common http response header to expire web content some fixed date way in the…

Kram
- 4,099
- 4
- 39
- 60
5
votes
1 answer
GrizzlyWebServer + Spring + Jersey + serve static content from within JAR
I'm trying to deploy Jersey-Spring based REST API using Grizzly's com.sun.grizzly.http.embed.GrizzlyWebServer. I also want to serve static content using the same. Here is what I have:
String host = "localhost";
int port = 8081;
// For jersey +…

codemaniac
- 879
- 1
- 11
- 31
5
votes
2 answers
How to serve static content with Apache in AppFog (WSGI Python app)
I'm using AppFog PaaS system for a few days, and I love it, It's probably the best PaaS system that I've tested (I've used other 3 ones previously), but didn't find information about how to serve static content with the Web server in frontend…

Roberto
- 8,586
- 3
- 42
- 53
4
votes
1 answer
Why ignores nginx my "auth_basic off" for sub-path location directive?
Nginx (docker image, 1.17.2) requires a basic authentication for a subpath. Although my config says otherwise for https://example.org/subpath:
// /etc/nginx/conf.d/mysetup.conf
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
server {
…

pico_prob
- 1,105
- 10
- 14
4
votes
2 answers
Allow POST request in nginx server for static content
We have an Angular application deployed to DigitalOcean => Ubuntu => Nginx, => www folder, this accepts all the GET request. We call some third party API, and in reponse the third party hits our endpoint with POST. But nginx is not allowing it. It…

Suraj Manandhar
- 41
- 1
- 4
4
votes
3 answers
Django Direct_to_template or flatpages
Building a django app with some mostly static pages at the front of the site e.g. about.html faq.html
that kind of thing
I was looking at how urls.py work and I created this.
('(.+\.html)$', direct_to_template),
It seems to do exactly what I…

Derek Organ
- 8,323
- 17
- 56
- 75
4
votes
1 answer
Spring mvc security and WEB-INF js,images access- Refused to execute script from 'http://localhost:8081/xyz/static/internal/js/jquery-1.10.2.min.js'
Need a help of following.
I am using spring 4.1 with spring security 3.2.7 and annotations.
My js, css, images are not loading..I am getting this error.
Spring mvc with security and WEB-INF js and images access- Refused to execute script from…

Manu
- 1,243
- 5
- 17
- 43
4
votes
2 answers
How do I display an HTML file using Websphere Liberty?
I have static HTML pages. Using the Apache server (through XAMPP) I used to put my HTML files in the htdocs folder and they would be accessible through the localhost URL.
I'm not sure how to do this with Websphere Liberty server. let's say I have…

Marko
- 570
- 5
- 21
4
votes
1 answer
HTTP 404: The /Media directory is not serving images
I cloned a client's Orchard CMS. The repository that I cloned did not contain the Media folder (this is good). So, a next step was to restore the Media/Default directory from a .zip backup. Now that I've restored that, browsing the to site gives a…

Shaun Luttin
- 133,272
- 81
- 405
- 467
4
votes
2 answers
How do I serve nested static content on Heroku?
I have a rails application with static content in the public directory (e.g. public/index.html) and additional static content in nested subdirectories (e.g. public/one/two/index.html).
All the static content is served correctly if I run it locally…

Matthew Murdoch
- 30,874
- 30
- 96
- 127
4
votes
2 answers
Serve static Jenkins content using Apache along with mod_proxy_ajp
Environment:
Novice user (thats me) on all mentioned points
CentOS 6.4 x86_64
OpenJDK 1.7.0_65
Apache httpd 2.2.15 + mod_ssl 2.2.15 - Acts as proxy using
mod_proxy_ajp, no other webapp
Jenkins 1.562 - Runs only on ajp port 8009, no web prefix
I am…

Parag Doke
- 863
- 7
- 17