2 ms·
> Even more counter-intuitive: this holds even when loading multiple pages on the same site that share the same (small) CSS file. Did you verify that the cache
by e12e 11y ago
> Even more counter-intuitive: this holds even when loading multiple pages on the same site that share the same (small) CSS file.
Did you verify that the cache headers where correct, and that the CSS file was only loaded once? It's certainly possible, but indeed surprising (to me) if the actual overhead of parsing the html (and then the css - 2x render time) is that big?
[ed: Did you see the same pattern using local static files?]
- jacquesm 11y agoYes, absolutely. You can easily verify this for yourself if you want with a simple page with embedded CSS and one with the CSS included from a file. The configuration line reads: ExpiresByType text/css "access plus 1 week" And I verified that it worked using a commandline http tool as well as the firefox developer tools (network section), on the second view it only loaded the page and not the CSS.