• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

css as files storable?

Marcus

Well-known member
#1
Are css files stored as files possible? In this case the browser only loads the css once (if you setup your apache server right).
 

DeltaHF

Well-known member
#3
If you setup your web server correctly, as you noted, XenForo's dynamically-generated CSS files will be sent with the correct "Content-Type" and "Expires" HTTP headers and will be cached in the browser as any "static" .css file would.
 

Marcus

Well-known member
#4
If you setup your web server correctly, as you noted, XenForo's dynamically-generated CSS files will be sent with the correct "Content-Type" and "Expires" HTTP headers and will be cached in the browser as any "static" .css file would.
Nice. Is that working on your xf forum?
 

DeltaHF

Well-known member
#5
I don't have a XenForo forum (yet), but caching and speed is an important factor for me. I determined that by examining the HTTP headers for the CSS "files" (using the Live HTTP Headers Firefox plugin) directly while loading different pages here.
 

Marcus

Well-known member
#6
Thanks for the idea. As there are hundreds of xf forums live I am curious to see at least one which did that. As this is very important for speed - for a member / regular user who creates content, not for the random guest who's most important for ad income :)
 

DeltaHF

Well-known member
#7
As I mentioned, that's being done here, on the official XenForo boards, and that's probably how it would work most anywhere unless XenForo somehow over-rides the server's default "Expires" time-out header for text/css content.