The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
18 views

nginx and expire header not working

this is my nginx config location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires 1y; add_header Pragma public; add_header Cache-Control "public"; try_files $uri $uri/ /$1/$2 =404; ...
1
vote
1answer
113 views

Serving a file with an expires header depending on when it was last modified

In nginx is there a way to conditionally serve a file with different expires headers depending on when the file was last modified? For example, if foo was modified within the last week then I want it ...
0
votes
1answer
464 views

nginx expires directive without Cache Control header

Is it possible to use the expires directive in nginx to display the "Expires" header alone without the Cache-control ? Also I've seen some websites whose max-age value decrements over time. Example ...
-1
votes
3answers
7k views

How to clear nginx cache [closed]

My nginx config here: http://p.ngx.cc/0c This link http://aa-tour.ru/static/system/css/style.css show me old cached version of file, how to remove it and clear cache? This is correct (new) version of ...
0
votes
1answer
56 views

Set expires for all virtual hosts nginx

Is it possible to set expires for all virtual hosts (servers) in nginx while still filtering the filetypes? Right now I'm using location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|otf|ttf) { ...
0
votes
1answer
59 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
2answers
96 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
1answer
2k 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; ...
1
vote
1answer
3k 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 ...
0
votes
1answer
623 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 ...
2
votes
2answers
309 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: ...
0
votes
1answer
1k 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 ...
1
vote
3answers
787 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
1answer
525 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
1k 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 ~* ...
3
votes
1answer
1k 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; ...
0
votes
2answers
450 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 ...
3
votes
4answers
1k 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.
1
vote
1answer
2k 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
325 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 ...
3
votes
3answers
4k 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 ...
0
votes
1answer
1k 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?
1
vote
1answer
4k 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
2answers
226 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 ...
2
votes
2answers
3k 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 ...
2
votes
2answers
2k 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
530 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
2answers
409 views

Expires header for specific file types

How can I add an expires header just for pngs, and the ico file?
8
votes
2answers
14k 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 ...
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?
0
votes
3answers
6k 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 ...
25
votes
5answers
28k 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 ...