I have several different sites on different hosts, and I use the same JS file in all of them, which is downloaded from one and only remote host. For instance,
The single JS name of my.js is stored in someotherhost.net .
This file name is uploaded to several different pages (sites):
somedomain1.net/home.html
somedomain2.net/home.html
somedomain3.net/home.html
View my.js browser caches through these sites . But will he use the same cache for all different sites?
Or maybe it doesn’t matter if the requested file name is the same, stored on one remote host and loaded on different pages, will the browser have different caches?
How does browser caching work?
source
share