caching - CSS referencing in HTML -


let's have website called http://example.com. in have stylesheet so: <link rel="stylesheet" href="/_resources/css/style.css" />

what if have website called http://another-example.com/ , want use same stylesheet using @ http://example.com? asking load times. if visits example.com first , another-example.com, if have stylesheet in another-example referencing file in example, browser cache stylesheet , not have load again, or automatically download example.com stylesheet when visits another-example.com , have 2 copies of stylesheet?

in short, no. not worry, time takes load style sheet pales time takes load single high quality image. issue if still using dialup @ 1kbs speed trying load page.

you should assume, when making website, things caching turned off. can use following code force this.

cache-control: no-cache, no-store 

hope helps!


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -