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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -