Page MenuHomePhabricator

Synchronize css/js caching
Closed, DeclinedPublic

Description

Due to caching, changes to the site-wide css/js MediaWiki pages can take up to one month to effect readers. The delay changes between readers, and also between files, which can be very frustrating when multiple interacting scripts or stylesheets need to be changed: weird backwards compatibility code needs to be added to ensure that all possible combinations of old and new files work correctly. It would make life easier, if all the css/js files updated at the same time for any single user, maybe by using a cookie to set max age values in the HTTP header or to trigger a javascript-based reload.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=26338

Details

Reference
bz17821

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:35 PM
bzimport set Reference to bz17821.
bzimport added a subscriber: Unknown Object (MLST).

Related:

  • bug 34779: add timestamp near cache key (JS/CSS minify)
  • bug 26338: Wikimedia JS/CSS files get an extra max-age cache-control param

(In reply to Andre Klapper from comment #1)

Related:

  • bug 34779: add timestamp near cache key (JS/CSS minify)
  • bug 26338: Wikimedia JS/CSS files get an extra max-age cache-control param

The individual words seem related, but neither bug is related to this issue.

This bug is no longer relevant. We haven't loaded Common.js this way since 2010 when ResourceLoader was introduced.