browser - Using same cache from different static servers -


i'm thinking adding static server web app, i'd have static1.domain.tld , static2.domain.tld.

the point use different domains in order load static content faster ( more parallel connections @ same time ), 'troubles' me "how user's browser see static1.domain.tld/images/whatever.jpg , static2.domain.tld/images/whatever.jpg same file" ?

is there trick accomplish headers or i'll have define file on server?

no, there's no way tell browser 2 urls same -- browser caches full url.

what can make sure use same url same image. ie. images start a-m go on server 1, n-z go on server 2. real implementation, i'd use hash based on name or that, there's libraries kind of thing you.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -