Yahoo Yslow - can we cache the .php stylesheets

Yahoo Yslow - can we cache the .php stylesheets

od Matt Gibson -
Število odgovorov: 2
I've noticed, using Yslow (more info) that the stylesheets are the biggest part of my page loading time. However, I already tell apache to cache .css files - are the styles.php one to blame?

has anyone got a way to modify the mod_expires directives so that individual files can be cached, or if this is even a good idea?

To illustrate - here are the cache performance stats for moodle.org (this page)


Empty Cache Primed Cache
31.9K 1 HTML document
183.5K 4 Style Sheet Files
215.4K 11 JavaScript Files
7.0K 39 Images
1.8K 7 CSS Images
439.7K Total size
62 HTTP requests
31.9K 1 HTML document
119.8K 4 Style Sheet Files
0.03K 11 JavaScript Files
0.0K 39 Images
0.0K 7 CSS Images
151.8K Total size
62 HTTP requests


In other words, 79% (!) of the page load of moodle.org with a primed cache is taken up by its style sheet. The numbers are roughly the same for my site.

Am I right in thinking its possible to gain a large decrease in page load time?

Matt
Povprečje ocenitev:Useful (1)
V odgovor na Matt Gibson

Re: Yahoo Yslow - can we cache the .php stylesheets

od Matt Gibson -
Maybe this isn't accurate, as a look at the net tab shows that these css files are not actually requested. Maybe just a wekaness with Yslow.