+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / layout_transformations.css not cachable?

layout_transformations.css not cachable?

6 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    18 Apr 2012
    Link to this post
    Why does ~/Sitefinity/Public/ResponsiveDesign/layout_transformations.css come with with an expiry of Jan 0001?  Why would we not want that cached for our users?
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    18 Apr 2012
    Link to this post
    Hey Steve,

    I think they did that because the layout_transformations.css comes down with every editon of Sitefinity, wether you have the feature turned off or on. By setting the cache to null they force it to get reloaded each time. (which is ok if its turned off, because its empty anyway although it counts against parallel downloads) 

    But in the case when you have it turned on, the browser would be forced to render the latest, instead of having the zero-length one cached indefinately.
    Jochem
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    18 Apr 2012
    Link to this post
    Fair enough...but I still would like it cached :)

    Could perhaps instead have the version of the file appended to it, every change to the backend incriments the version # so like layout_transformations_v1.css.  Where the current version\format can be changed in the backend responsive config?
  4. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    18 Apr 2012
    Link to this post
    Hmm.... 

    Neat! While we're at it, would be sweet if its a physical file as well, or at least a file residing in the theme folder so we could fine tune it with Thunder...

    Jochem.
  5. Dawid
    Dawid avatar
    15 posts
    Registered:
    30 Jan 2012
    04 Sep 2014
    Link to this post

    Has this been addressed in any recent version of sitefinity, say > 7?

    This file is > 44 kb that gets a FORCED download?

  6. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    04 Sep 2014
    Link to this post

    Dear Dawid

    No answer but a chance to vote that it gets at least minified: http://feedback.telerik.com/Project/153/Feedback/Details/99094-the-layout-transformations-css-should-be-cached-and-minified

    Markus

6 posts, 0 answered