Forum Moderators: open

Message Too Old, No Replies

Caching CSS files

How do you specify to cache or not?

         

MatthewHSE

6:39 pm on Jul 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

I was just reading some posts where people advised to make CSS files cachable. How do you do that? I thought everything was able to be cached by default.

I'd sure appreciate any advice that can be provided on this one!

jdMorgan

7:45 pm on Jul 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



MatthewHSE,

These might be helpful:

Caching tutorial: [mnot.net...]

Cacheability checker: [ircache.net...]

Jim

tedster

7:50 pm on Jul 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know CSS files are cached by default - in fact, I wouldn't know how to stop the caching, not from the HTML end at least. I assume that server side you could set an Expires rule in the HTTP header.

You want to be sure that the server is generating a last-modified date, but as long as the CSS is a static file, and not generated dynamically, this also should be happeneing automatically.