[wp-trac] [WordPress Trac] #28722: Boost performance with ETag in load-scripts.php and load-styles.php

WordPress Trac noreply at wordpress.org
Wed Jan 13 02:06:03 UTC 2016


#28722: Boost performance with ETag in load-scripts.php and load-styles.php
-----------------------------+------------------------------------------
 Reporter:  sergej.mueller   |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  4.5
Component:  Script Loader    |     Version:  4.0
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  administration, performance
-----------------------------+------------------------------------------

Comment (by dd32):

 I think we should drop the `false === strpos( $wp_version, '-' )` test
 afterall.

 1. If you're running in `/src/` then `load-*.php` isn't used anyway
 (`$wp_version` includes `-src`)
 2. If you're running out of `/build/` then `load-*.php` is used, however,
 `$wp_version = '4.5-alpha-$DATE'` (so unique per day)
 3. If you're running from core.svn.wordpress.org then `load-*.php` is
 used, however `$wp_version = '4.5-alpha-$LAST_COMMIT'` (So unique per
 every commit)

 Of course `SCRIPT_DEBUG` overrides !#2 and !#3.

 We could make !#2 scenario more reliable for testing by using more than
 just `Ymd` as `$DATE`, we could stick in `Ymd.his` even.

 I'm tempted to drop this in now so that users in scenario !#3 above can
 test.

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


More information about the wp-trac mailing list