Nick.Robinson - freelance computing
-
9/15/2010 12:50:05 PM
RE:How to avoid Css StyleSheet Cache ?
THE PROBLEM
I looked at the reference which you gave but their problems seem to relate to stuff being cached in the Browser or in the IIS7 output cache. What I need to do is to make Kentico CMS look at an updated external .css file when it is building the output to be displayed.
SOLUTION I can only get Kentico to look at the updated CSS if the CSS code is being held inside Kentico itself. Thus if I use inline CSS (eg using style='.....' attribute) in my Master Page code, that will work. It also works if you keep the actual stylesheet code in the Page Property view and edit it there. Every time you change it there, it is immediately visible when you go back to Page or Design view.
(This works but is actually easier to check it out, edit it and then check it in again as the Kentico CSS editor window is a bit smalll and cumbersome).
I have tried using an @import('path/to/MyStylesheet.css') statement but Kentico seems to use some form of cacheing for this, so it didin't work for me.
There may be other ways but this worked for me (ver 5.5). I understand you are going to have a new CSS edition in version 6. I hope that will fix the problem but it would be nice to be able to use an external editor and have Kentico use the latest version of any external .css files.
|