Bug #16483
closedbrowser cache problems when changing RTE css
0%
Description
At least with Mozilla I have the problem that "clearing the cache" does NOT clear the cached CSS files. I ususually have to type in the URL of the CSS file in the browser and do a "shift-reload" to force the new CSS.
That's not a real problem during development, but a serious one when I have to change the CSS of a running system.
My proposed solution for this is to include (hardcopy, no @include rule!) the user supplied CSS file into rtehtmlarea_css_<md5>.css. Of course now file name and file change time (!) have to be part of the hashed string.
(issue imported from #M4083)
Updated by Ernesto Baschny over 17 years ago
I usually manually rename the file when I change it (contentRTEv20.css) and modify the setting in PageTS so that the browsers are forced to reload the file.
But I agree that having this automated can be a big help. One have just to see how we don't end up with tons of garbage in typo3temp. Maybe automatically deleting all previous files before creating the new one?
Updated by Stanislas Rolland about 16 years ago
If the CSS style sheet contains relative URI's, the base of the URI is that of the style sheet (see http://www.w3.org/TR/CSS21/syndata.html#uri).
Therefore is you copy the style sheet to typo3temp, any reference by relative URI will be broken.
I think that in recent versions of Firefox 2 and Firefox 3, clearing the browser cache will clear any cached style sheet as well as any cached script. I am not sure however if they will check if a css file was updated. I know that they will not check if a js file was updated.
Updated by Stanislas Rolland about 16 years ago
The attached patch moves the style sheet links to head, where they should be. I think that browsers will then recognize a modified style sheet and update their cached css. Please test and confirm.
The patch should apply to current trunk (revision 4295).
Updated by Stanislas Rolland about 16 years ago
The patch has now been committed to both trunk and branch TYPO3_4-2.
Updated by Stanislas Rolland about 16 years ago
Well, I did some further tests and it does not change the behaviour of FF3 or IE7. They both ignore the modified style sheets and continue to use the cached css.
Updated by Stanislas Rolland over 14 years ago
See solution implemented by #13998 and #14014 (TYPO3 4.4 beta).