Css caching

hi guys with 2 style sheets I have all the same styles and div names but they differ in properties. I’ve called the style sheet different name, I assume I wont get a cache issue even on same website. 1 page has 1 sheet another has the other? any clues you clever lot?

Hi,

If your stylesheet has a different name then there is no danger of the page calling the wrong stylesheet or indeed using a rule from a stylesheet not linked to (or designated by the UA or user).:slight_smile:

Indeed there may be loads of stylesheets on your cache and many will have the exact same rules but they will never be called unless you ask for them by name.

Is that what you meant :slight_smile:

sure was, big thanks :cool:

kind of related, being cache and all, if I wanted to update images but not change names, how could I go about that without a cache issue? any ideas? could I do it by changing directory name? cheers Paul, your the man!

Yes using a different directory name will cal for a different file (technically) and thus no cache issue (I think).

More info here:
http://betterexplained.com/articles/how-to-optimize-your-site-with-http-caching/

Here’s also usefull info.

cheers guys you’ve all been big help :wink: