[wp-trac] [WordPress Trac] #28557: Add Theme/Plugin-Version to URL not the WP-Version

WordPress Trac noreply at wordpress.org
Tue Jan 3 12:41:01 UTC 2017


#28557: Add Theme/Plugin-Version to URL not the WP-Version
---------------------------+-----------------------
 Reporter:  Drivingralle   |       Owner:
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  wontfix
 Keywords:  2nd-opinion    |     Focuses:  template
---------------------------+-----------------------
Changes (by dd32):

 * keywords:  2nd-opinion has-patch => 2nd-opinion
 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Calling `filemtime()` multiple times on each pageload isn't an option, nor
 can you rely upon it being a cascading timestamp update (not all
 filesystems do).

 IMHO it's up to the plugin or theme to specify the version parameter here
 for cache-busting. The main issue is performance - not just of how to get
 the data, but determining that a resource is being enqueued by a specific
 plugin or theme.

 If you run into a problem caused by this, tell the plugin or theme author
 that they should bump the cache busters on their enqueued resources during
 updates - that's what the parameter is for.

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


More information about the wp-trac mailing list