Versioning/caching css

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • becker
    Mini Mivite

    • Nov 2013
    • 47

    #1

    Versioning/caching css

    The css for a store I'm working on is being cached through the use of an .htaccess file, but I'm tired of (and know it's not great for business) having to tell customers they need to refresh their cache when they have layout problems. I'd like to get a proper versioning system setup to avoid this. Normally I would do this by using php (something similar to this http://derek.io/blog/2009/auto-versi...and-css-files/).

    I can't use php in my global header for my miva store, though, correct? I was thinking maybe I could do it using the callurl function in the Emporium toolkit, but I'm really not sure. Any help on how to achieve this either by using php in the global header or through some other method of versioning (not by hand), would be appreciated.
  • lesliekirk
    Super Moderator











    • Aug 2008
    • 9289

    #2
    Re: Versioning/caching css

    I'm just curious, is there a reason why it's being cached using the .htaccess file?
    Leslie
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest

    Comment

    • nottheusual1
      Mega Mivite


      • Jul 2008
      • 1124

      #3
      Re: Versioning/caching css

      Version control + speed. Really old school in the Apache world but recently mega popular among the bloated blogosphere denizens to reduce load times.



      One of the Torvalds talking about it way back when (2007 -- snicker)

      Comment

      Working...
      X