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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -