[wp-trac] [WordPress Trac] #29201: File versioning should not use query strings, but rename the filename to allow caching

WordPress Trac noreply at wordpress.org
Thu Jun 9 04:24:20 UTC 2016


#29201: File versioning should not use query strings, but rename the filename to
allow caching
---------------------------+--------------------------
 Reporter:  benoitchantre  |       Owner:
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:  3.9.1
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:  performance
---------------------------+--------------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 The versioning is used for cache-busting in events where browsers do not
 recheck the server version on a regular basis (for example, because it was
 served with a 30 day expiry).
 A filename change would also solve that problem, but comes with it's own
 issues - for example, either rewrite rule requirements, or changing the
 filename each release which has huge implications for reliable updates on
 the thousands of weird and underpowered servers WordPress is used on.

 So this isn't going to be changed in core, if you wish to use filename-
 based cache-busting techniques, that's possible through the usage of
 filters such as `script_loader_src` and `style_loader_src`, but it's not
 currently feasible for WordPress to change and operate in all
 environments.

 Discussion can continue while the ticket is closed; re-opening isn't going
 to make it be reconsidered, only a good argument for change (of which,
 none have been made yet) will be considered.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29201#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list