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

css as files storable?

Discussion in 'XenForo Pre-Sales Questions' started by Marcus, Sep 16, 2011.

  1. Marcus

    Marcus Well-Known Member

    Are css files stored as files possible? In this case the browser only loads the css once (if you setup your apache server right).
     
  2. Floris

    Floris Guest

    Nope.
     
    Marcus likes this.
  3. DeltaHF

    DeltaHF Well-Known Member

    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 likes this.
  4. Marcus

    Marcus Well-Known Member

    Nice. Is that working on your xf forum?
     
  5. DeltaHF

    DeltaHF Well-Known Member

    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.
     
  6. Marcus

    Marcus Well-Known Member

    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 :)
     
  7. DeltaHF

    DeltaHF Well-Known Member

    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.
     
    Marcus likes this.

Share This Page