Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kishore 19 posts 40 karma points
    Mar 28, 2013 @ 15:45
    Kishore
    0

    Caching issue with CSS/JS file when using client dependancy control

    Hi,

    We are currently having some caching issue with CSS/JS deployment using courier.

    The CSS/JS files are combined using ClientDependency.Core.Controls in the templates. 

    The issue is that whenever we make any changes to CSS/JS files the changes are not coming through immediately until force refreshing the browser or clearing browser cache, or publishing the some content to get the latest changes of the css/js.

    Our production server is load balanced setup, most of the time whenever we deploy css/js/document type using courier one of the node did not get the latest.

    Is this a known issue with umbraco or is there any workaround to get away with this issue.

     

    Umbraco Version: 4.7.1

     

    Thanks,

    Kishore

  • Nigel Wilson 944 posts 2076 karma points
    Mar 28, 2013 @ 18:56
    Nigel Wilson
    1

    Hi Kishore

    When using clientdependency the "merged" cache files are created within app_data/temp/clientdependency directory and there should be a version number in the URL's of the css / js files on the front end.

    The version number is controlled within the config/clientdependency.config file. Have you tried changing this when pushing changes through to your site? In theory changing the version number should ensure that fresh cache files are created.

    Hope this helps.

    Nigel 

Please Sign in or register to post replies

Write your reply to:

Draft