Static content like a static web page is delivered to the user's web browser exactly as stored, in contrast to dynamic content, which is generated for each request by a web application.
Questions tagged [static-content]
134 questions
3
votes
3 answers
Serve millions of concurrent connections and static files?
I am just curious about the server configurations to serve just static files from one server.
Is it possible to build a server that just for static files and serve millions of concurrent connections. What could be the best HTTPD service for this?…

DucDigital
- 1,491
- 3
- 18
- 26
3
votes
1 answer
IIS7 Minimum HttpModules Configuration for Static content website
I am trying to setup a really fast, compressed, cached static content website to serve only .jpg, .css and .js
I want to remove all functionality from the website configuration that is not required:
But this configuration keep failing:

Robs
- 167
- 7
2
votes
2 answers
How to manage static content for high-loaded website via nginx?
My understanding is that nginx is well-suited for serving static content. But i can't find any information with regard to how well it's for serving very big amount of static content. Let's say i use nginx as a web server and node.js as an…

jerichofs
- 41
- 1
- 4
2
votes
1 answer
Best way to add authentication layer to static file requests?
I am trying to figure out the best way to add an authentication check to requests for static assets on my server.
I am running Apache2.4 and PHP/Laravel, which runs by serving static content directly from the DocumentRoot and enters at the…

Neurax
- 123
- 1
- 6
2
votes
1 answer
Nginx: / for both static content and proxied application
http://example.com: my site
http://example.net: the proxied backend
I'm trying to setup an nginx server block as both a static content server and a reverse proxy. Nginx should first check for static files and then redirect to the proxied…

Charles
- 303
- 1
- 3
- 10
2
votes
1 answer
How to serve a huge static and pregenerated website?
My current web project has the following characteristics:
A website which is basically a read-only archive of information. There are no interactive actions a visitor could do.
All pages (currently around 15k) of the website are pre-generated HTML…

JFo
- 145
- 6
2
votes
2 answers
With PHP installed, Apache is (comparatively) slow at serving static content?
First some background on how I installed PHP, Apache, and some Apache modules:
# apt-get -y install php5 php-pear libapache2-mod-php5 php-apc php5-mysql php5-mcrypt php5-xmlrpc php5-curl php5-imagick php5-gd php5-imap php5-pspell
# apt-get -y…

its_me
- 225
- 1
- 7
- 23
2
votes
2 answers
IIS8 not serving static content, even though Static Content role is installed
We have a new installation of Windows Server 2012 acting as a development server. I'm attempting to install DotNetNuke to a site, but when I run the install wizard, while the site comes up, static content is not being served (e.g., no images, CSS or…

Michael Itzoe
- 215
- 2
- 5
- 9
2
votes
3 answers
Apache2 + PHP static directory
I have Apache2 and PHP5 installed. My DocumentRoot is /var/www/. All .php and .html files are served form / and its child directories well. However when I request, say, .png images I get Forbidden notice.
I'd like to dispatch a specific /static/…

Alex
- 2,357
- 5
- 32
- 41
2
votes
3 answers
Nginx static files exclude one or some file extensions
I'm serving up a static site via nginx.
location ~* \.(avi|bin|bmp|dmg|doc|docx|dpkg|exe|flv|gif|htm|html|ico|ics|img|jpeg|jpg|m2a|m2v|mov|mp3|mp4|mpeg|mpg|msi|pdf|pkg|png|ppt|pptx|ps|rar|rss|rtf|swf|tif|tiff|txt|wmv|xhtml|xls|xml|zip)$ {
…

Evgenii Iablokov
- 660
- 2
- 9
- 15
2
votes
1 answer
How to make sure clients update their browser cache when my website is updated?
I am using the HTTP 1.1 Cache-Control header to implement client-side caching. Since I update my website only once a month I would like the CSS and JS files to be cached for 30 days with Cache-Control: max-age=2592000. The problem is that the 30-day…

Max
- 3,523
- 16
- 53
- 71
2
votes
3 answers
Separating dynamic and static content on high traffic website
I am trying to increase capacity for my website, which is growing beyond what my current web server is able to handle. The site hosts on a dedicated web server (Litespeed), and a dedicated database server. It receives over 180,000 visitors per day…

markxi
- 43
- 5
2
votes
3 answers
Multiple web servers serving same static content
I created a sub-domain for static content to be able to serve it more efficiently by several load-balanced web servers. This static content is updated automatically, at a rate of ~1k files/day.
Right now I use rsync to update the servers in a…

Steve Schnepp
- 2,314
- 3
- 21
- 28
2
votes
5 answers
Website deployment - managing user-uploaded content?
I'm a programmer by trade, "server administrator" by company necessity.
We're looking at dumping the old painful "update site by FTP upload" style of deployment. Having the webserver check out the latest code base from version control into a folder…

Legion
- 233
- 1
- 7
2
votes
1 answer
apache2 mod_deflate static content
I have a server serving up a JS file a few million times a day using apache2. Some of my users would like the JS to be gzipped. Does anyone know how apache2 mod_deflate handles compression of static files? Will it compress the js for each…
rizen