Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache-control]

The tag has no usage guidance.

2
votes
1answer
86 views

Is it possible to use .htaccess to instruct browsers to cache google analytics?

When I run Google PageSpeed Insights I get the following optimization suggestion. When I click the Leverage browser caching link it sends me to a page that recommends I use Cache-Control or ETags. ...
0
votes
1answer
903 views

add_header 'Cache-Control' working only without location context

I've installed nginx/1.10.3 (Ubuntu) and changed the original config file so that it is only slightly different at the top of the http context: http { add_header 'Cache-Control' 'no-cache'; and ...
1
vote
1answer
768 views

Nginx cache-control / expire headers will just not work

I've searched everywhere for a working answer to this issue, but none of the answers seem to work. I'm also sorry for the super long post but I just need to ask for help on this. I've tried to be as ...
0
votes
0answers
100 views

Order of priority of response headers while deciding to cache a response in nginx

I'm trying to understand how nginx decides if it should cache a response when different response headers like X-Accel-Expires, Expires, Cache-Control, Set-Cookie, Vary are present and finally when ...
2
votes
1answer
775 views

Nginx does not update max-age

If I make a request to a Nginx-proxy server configured to cache an upstream I get the following response headers: {'content-length': '13200000', 'x-cache-status': 'MISS', 'server': 'nginx/1.9.9', '...
1
vote
1answer
770 views

Nginx: Leverage browser caching for remote resources (images)

There are some images in one site of mine which are hosted to a remote server. I haven't figured out yet how to set Cache-Control to remote sources. For local files I'm using: location ~* \.(jpg|jpe?...
0
votes
2answers
839 views

cache-control when using mod_cache and mod_pagespeed

I'm using mod_pagespeed with mod_cache. When mod_pagespeed is off and mod_cache is off I see the following header: cache-control:public,max-age=7200,must-revalidate When mod_pagespeed is on and ...