When I run a Drupal cache clear, the css_js_query_string variable gets reset, which avoids having to hard-clear my browser's cached files in order to get updated JS. However, CKEditor uses its own cache-busting string, and the scripts loaded by CKEditor can get out of date when doing a deployment. It would be good to force CKEditor to re-use the same string.
This was a particular problem with an install profile I was using that provided it's own 'customConfig' file.
For reference:
http://ckeditor.com/forums/CKEditor/Problem-with-config.js-not-updating
http://ckeditor.com/forums/CKEditor/howto-disable-anti-cache-for-toolbar...
http://stackoverflow.com/questions/14940452/force-ckeditor-to-refresh-co...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Selection_351.png | 80.17 KB | dave reid |
| #2 | Selection_350.png | 79.23 KB | dave reid |
| #2 | 2679179-ckeditor-reuse-cache-busting-query.patch | 1.46 KB | dave reid |
Comments
Comment #2
dave reidPatch for review along with the before & after source of the CKEditor-related JS file URLs.
Current behavior:

After patch:

Comment #4
wim leersAlready landed in Drupal 8 core, with test coverage: #2679903: CKEditor uses separate cache-busting query string from Drupal's.
Comment #5
pounardThis should definitely be commited and released.
Comment #6
alvar0hurtad0This issue is on needs work because by this other one #2745809: Add some tests to avoid failed testing of all patches is stopped.
Once the other patch is commited CI can be used.
Reviews are wellcome to unblock the IQ.
Comment #7
dave reidComment #8
hass commentedDuplicate of
Comment #9
sgdev commentedThis same patch from the same author was committed a year ago for WYSIWYG: https://www.drupal.org/project/wysiwyg/issues/2679106
Have reviewed and should be committed here too.
Comment #11
jcisio commentedThank you. I checked the patch and it actually looks good. Committed and pushed.