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.
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.
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
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
is working on a reply...