Project

General

Profile

Actions

Bug #88369

closed

Ckeditor: customs plugins are not refreshed because of browser cache

Added by Rémy DANIEL over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2019-05-16
Due date:
% Done:

100%

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

Description

When a custom CKEditor plugin is modified, if it was in the browser cache before, the old version can be loaded.

To prevent this, CKEDITOR.timestamp can be used to add a "?t=" parameter to the url of plugins JS files.
CKEDITOR.timestamp has a default value in ckeditor.js and changes with every ckeditor releases.
On TYPO3 8.7 with ckeditor 4.11.1, CKEDITOR.timestamp is "IA8E" (it is not a real timestamp).

TYPO3 should override CKEDITOR.timestamp with a custom hash.
In a ideal scenario, this hash should be recalculated every time a custom plugin is edited.
But it is not very possible.

So I suggest that this hash can be the result of a MD5 of ckeditor configuration.
Every time the configuration is changed (like when adding an external plugin), the hash will change, and the browser cache will not serve an old version of a plugin.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #83626: CKEditor styling: CSS file changes are not visible because of cache handlingNew2018-01-21

Actions
Actions #1

Updated by Rémy DANIEL over 5 years ago

  • Related to Bug #83626: CKEditor styling: CSS file changes are not visible because of cache handling added
Actions #2

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60819

Actions #3

Updated by Gerrit Code Review over 5 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60853

Actions #4

Updated by Gerrit Code Review over 5 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60854

Actions #5

Updated by Rémy DANIEL over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF