Project

General

Profile

Actions

Bug #16483

closed

browser cache problems when changing RTE css

Added by Martin Kutschker over 17 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2006-08-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #22387: rtehtmlare should use versionnumbering method for CSS and JS filesClosedStanislas Rolland2010-04-06

Actions
Related to TYPO3 Core - Feature #22376: Introduce Automatic versioning of CSS and JS filesClosedBenni Mack2010-04-04

Actions
Actions #1

Updated by Ernesto Baschny about 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?

Actions #2

Updated by Stanislas Rolland over 15 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.

Actions #3

Updated by Stanislas Rolland over 15 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).

Actions #4

Updated by Stanislas Rolland over 15 years ago

The patch has now been committed to both trunk and branch TYPO3_4-2.

Actions #5

Updated by Stanislas Rolland over 15 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.

Actions #6

Updated by Stanislas Rolland about 14 years ago

See solution implemented by #13998 and #14014 (TYPO3 4.4 beta).

Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF