Jump to content


Photo
- - - - -

Stylesheets should have version numbers for expiration control


  • Please log in to reply
2 replies to this topic

#1 xoala

xoala

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 06 March 2012 - 05:47 PM

common.css and style.css don't have expiration dates, so they don't get cached on the client end, at least not for long. If version numbers were added, say, common-153.cas and style-153.css, then they could have very long expiration dates added, which would speed up performance. This can work only if the file names change on updates, however, since otherwise the old files will continue to be used.

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 March 2012 - 07:12 PM

I'll alert the developers to this suggestion. Thank you for taking the time to write about this interesting subject.

#3 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 06 March 2012 - 08:06 PM

They already have version numbers:
 /themes/pagelines/css/objects.css?ver=213-022963750