Jump to content

Cache CSS to text files? yes/no?


Recommended Posts

Posted

I'm also curious about this.

I assume having it in a text file will be faster because it doesn't have to load it along with the PHP, but OTOH it still has to load it, so is there a definite answer?

Cheers,
Shaun :D

Posted

If you cache the CSS to files, then when people first visit your site their browsers will download and store the CSS file in the browser cache. Any subsequent visits to your site without forcing a purge of the browser cache will just re-load the cached version of the CSS from their computers. This saves you in bandwidth consumed. If you don't cache the CSS files, then the full text of the CSS has to be loaded into the page source on every page load.

If you are concerned about saving bandwidth, definitely cache the CSS to text files.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...