The tag has no wiki summary.

learn more… | top users | synonyms

18
votes
4answers
19k views

Setting expires headers for static content served from nginx

I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that ...
7
votes
2answers
12k views

Configuring favicon with expires header in htaccess

I have implemented Expires headers via mod_expires on my Apache server and have successfully created expires headers for most file types, however I am having trouble with the favicon. I initially ...
3
votes
4answers
447 views

Different Expires Header for Specific URL

The whole application has a global expires header set in the .htaccess I have a URL e.g. /current which I need like a different expiry header.
3
votes
1answer
477 views

Nginx reverse proxy: Not setting expires header

I have my static assets configured as location @upstream { proxy_pass http://localhost:82; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; ...
3
votes
3answers
3k views

What headers to add for most efficient file caching?

So I've this response header for static files on my nginx server. Cache-Control:max-age=2592000 Connection:keep-alive Date:Sat, 11 Dec 2010 22:28:13 GMT Expires:Mon, 10 Jan 2011 22:28:13 GMT ...
2
votes
2answers
220 views

Requesting better explanation for expires headers

I have successfully implemented expires headers however, for several days I have been stumped by one thing. This article: ...
2
votes
2answers
2k views

Squid refresh_pattern won't cache “Expires: …”

Background I frequent the OpenGL ES documentation site at http://www.khronos.org/opengles/sdk/1.1/docs/man/. Even though the content is completely static, it seems to force a reload on every single ...
1
vote
3answers
420 views

Apache mod_expires

I am rather confused with the whole access and modification. I want the files to be cached until they are modified. If the data is the same, show cache version. If data has changed, download updated ...
1
vote
2answers
273 views

What is the Expire on apache httpd.conf

I'd like to set the following: ExpiresActive On ExpiresByType application/x-flash-swf "access plus 1 days" ExpiresByType application/x-shockwave-flash "access plus 1 days" <FilesMatch ...
1
vote
2answers
380 views

Expires header for specific file types

How can I add an expires header just for pngs, and the ico file?
1
vote
1answer
1k views

What's the correct Apache syntax for proper expiration cache control?

Some questions on the absolute, optimal usage of caching of dynamic and static cache. Currently, my htaccess is setup as below, and I have the feeling im not really using it the correct way... Any of ...
1
vote
2answers
1k views

What causes memcache to delete keys?

Our memcache install recently started removing keys, and we're not sure why. Large groups of keys vanish at the same time. Memcache reports that evictions are low to non-existent, and our app has no ...
1
vote
1answer
2k views

how to get nginx to gzip all files and add an expires header

recently got into VPS systems and installing them, and all that blah blah etc etc. So, I have a couple working websites, and on one of them I'm trying to really optimize it for speed. Using Yahoo's ...
1
vote
1answer
3k views

Can someone share their Varnish VCL to set expires in the future?

It seems that a dozen pages exist that tell you how to set your "expires" headers for files, but none that are actually correct. Right now, my VCL is: if (req.url ~ "^/media/") { set beresp.ttl ...
1
vote
1answer
508 views

if I set up the expire http header of a css file to 1 year, if I modify that file, will it be ignored by the browser using rails?

I'm using rails with nginx/passenger. If I set up the expire http header of a css file to 1 year, if I modify that file, will it be ignored by the browser (ie, it will not request the new version)? ...
1
vote
4answers
3k views

Is there a way to add expires header to images with Godaddy shared Linux hosting?

I can't find a way to do it. Is it even possible?
1
vote
1answer
358 views

set expires header varnish, like apache directive

Does anyone know a way to add expires header to a response in Varnish, like Apache does? Using Apache directives you can set expire headers and set how much time from now they will expire i.e. 1 month ...
1
vote
0answers
898 views

Leverage browser caching on nginx

I am using nginx for my webserver. I am trying to set an expiry date or a maximum age in the HTTP headers for static resources but it doesnt work. This is what i am using; location ~* ...
1
vote
2answers
214 views

expires headers being set, still see requests

I may be wrong in assuming this, but if I've set an expires header of access plus 1 year on a file, and I can see that in the header, when I make another request for that file, shouldn't it just be ...
0
votes
3answers
4k views

How to disable “Password Never Expires” on multiple users (Windows Server 2003)

It seems that a lot of my users have the "Password Never Expires" box checked. And that bypasses my password policy. I have all my users under one OU folder, with a lot of subfolders of course. And ...
0
votes
1answer
1k views

Accounts Password Stays Expired After Group Policy Change

Let's say I have a group policy that sets the maximum password age at 90 days. Some user doesn't change their password for 91 days, so their password should be expired. If I then remove that group ...
0
votes
1answer
22 views

Setting up nginx expiry for certain static URL

My app are serving watermark images through an URL like this: http://www.domain.com/watermark/image1234.jpg/thumbnail/ I'm wondering how do I set nginx to recognize this as static images so I could ...
0
votes
1answer
766 views

nginx - how to get server inheritance / adding caching headers to various reverse proxied sites

I have about 5 sites running on different ports via reverse proxy and accessible under different sub domains. Some of these sites are setting the expires (/ cache-control max age header) by themselves ...
0
votes
2answers
303 views

Redis using lots of RAM, steadily increasing until I restart it

I have a simple redis installation and it seems to slowly eat more and more ram at a steady incline until I restart the redis server. I'm using redis as a caching layer, currently I don't set an ...
0
votes
1answer
57 views

Set “expires” in nginx for multiple vhosts

I use the "apache style" nginx config (include /sites-enabled folder files and a single .conf for every website I host). How can I set this: location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires 30d; ...
0
votes
0answers
155 views

Expires with dynamic cache in nginx

I'm trying to set some Expires in a lot of JavaScript that I got here, but they are not static on filesystem, it is dynamic generated by a Java application. If I do this: location /bla { root ...
0
votes
1answer
552 views

Location directive in nginx configuration

I have an nginx server setup to act as a fileserver. I want to set the expires directive on images. This is how a part of my config file looks like. http { include /etc/nginx/mime.types; ...
0
votes
1answer
379 views

Requesting better explanation for etag/expiration of favicon.ico

Following this article: Configuring favicon with expires header in htaccess Using YSlow, I keep getting: (no expires) http://devwww.someplace.com/favicon.ico Also, YSlow indicates: Grade C ...
0
votes
1answer
732 views

setting Expires date in iis6

i try to control my iis6 caching i was able to set Cache-Control public, max-age=1000000 but i can't set the Expires any help?
0
votes
1answer
283 views

Rails time stamps on images in CSS

Just posted this on Stack but realized it may be more appropriate here: So Rails time stamping is great. I'm using it to add expires headers to all files that end in the 10 digit timestamp. Most of ...