Understanding caching
Daniel Eschner
daniel at linux-nerd.de
Thu Jun 30 08:45:31 UTC 2016
Hi there,
i need to understand the caching options better. So, i have serval Questions ;)
I added some Cacherules like these:
location /js {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
location /css {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
location /img {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
location /bundles {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
location /alloyeditor {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
No when i browser arround Chrome said „From cache“ that works fine for me but when i reload the Website it seems that only *.JPGs comming from the cache.
Is that a Browser issue or a nginx issue? Need to know where i have to search ;)
Closing the browser and start again it dont came from cache - but as i understand i say it will expire in 7 Days - so why nit not comming from local cache?
Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160630/74232bc2/attachment.html>
More information about the nginx
mailing list