Revision history [back]

click to hide/show revision 1
initial version

answered 2020-02-26 14:27:04 +0800

cor3000 gravatar image cor3000

if you're not sure about caching, the current modern browsers have integrated developer tools to analyse the network traffic and indicate whether caches take effect or the contents are downloaded. e.g. in chrome:

https://developers.google.com/web/tools/chrome-devtools/network

To avoid unintended caching it's a good practice to make sure different images have different urls, and same images have the same url. E.g. by generating a hash code or version for a resource and append it to the url:

E.g. "images/logo.png?v=1" "images/logo.png?hash=34adc9f8b34"

like that the exact same version/hash can be cached by the browser, and different contents are loaded reliably when needed.

if you're not sure about caching, the current modern browsers have integrated developer tools to analyse the network traffic and indicate whether caches take effect or the contents are downloaded. e.g. in chrome:

https://developers.google.com/web/tools/chrome-devtools/network

To avoid unintended caching it's a good practice to make sure different images have different urls, and same images have the same url. E.g. by generating a hash code or version for a resource and append it to the url:

E.g.

"images/logo.png?v=1"
  • "images/logo.png?v=1"
  • "images/logo.png?hash=34adc9f8b34"

like that the exact same version/hash can be cached by the browser, and different contents are loaded reliably when needed.

if you're not sure about caching, the current modern browsers have integrated developer tools to analyse the network traffic and indicate whether caches take effect or the contents are downloaded. e.g. in chrome:

https://developers.google.com/web/tools/chrome-devtools/network

To avoid unintended caching it's a good practice to make sure different images have different urls, and same images have the same url. E.g. by generating a hash code or version for a resource and append it to the url:

E.g.

  • "images/logo.png?v=1"
  • "images/logo.png?hash=34adc9f8b34"

like that the exact same version/hash can be cached by the browser, and different contents are loaded reliably when needed.

If you prefer dedicated support, get in contact with us.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More