When a css/js refers on a webpage it is first downloaded to client machine. From the next time it is referred from browser cache (if it presents). Please tell me
- What happens when multiple sites refer a css/js having same name.
- What happens when sub-domains refer a same css/js
- What happens when many websites refer css/js from specified cdn like google or some other place.
Please tell me, in such cases, whether browser refers copy from cache or it makes local references according to main sites or something else.