ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Stylesheet tag with version appended

May 14, 2012 2:36pm

Subscribe [1]
  • #1 / May 14, 2012 2:36pm

    Richard Whitmer

    96 posts

    I’m not finding definitive info on this in the docs or forum, so here goes.

    I thought that if a stylesheet was called using the stylesheet=“template_group/template” a version would be appended to the html to help manage caching. That doesn’t appear to be happening for me.

    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet='site/site-css'}" />

    Renders:

    <link rel="stylesheet" type="text/css" media="all" href="http://www.mysite.com/?css=site/site-styles" />

    When I was expecting something like:

    <link rel="stylesheet" type="text/css" media="all" href="http://www.mysite.com/site/site-styles.css?v.1311341729" />

    Is there a way to do this?

    Thanks

    EE v2.3.1 - Build: date 20111017

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases