Welcome! Log In Create A New Profile

Advanced

Understanding caching

Daniel Eschner
June 30, 2016 04:46AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Understanding caching

Daniel Eschner June 30, 2016 04:46AM

Re: Understanding caching

Francis Daly June 30, 2016 08:52AM

Re: Understanding caching

B.R. June 30, 2016 01:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready