[wp-trac] [WordPress Trac] #58433: Improve Etag-based cache busting for styles and scripts
WordPress Trac
noreply at wordpress.org
Sun Apr 7 23:52:13 UTC 2024
#58433: Improve Etag-based cache busting for styles and scripts
-------------------------------------------------+-------------------------
Reporter: dav4 | Owner:
| peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.6
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has- | Focuses:
testing-info has-screenshots commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57943" 57943]:
{{{
#!CommitTicketReference repository="" revision="57943"
Script Loader: Improve asset concatenation Etags.
Include the asset version of JavaScript and CSS files when generating the
ETag for concatenated assets in `load-scripts.php` and `load-styles.php`.
This ensures the ETag is updated as script versions change (for example
editor package updates) rather than only when the WordPress version
changes.
The `W\` prefix is added to the generated ETag to allow for CDNs and proxy
servers modifying the script to add or improve the compression algorithm.
Props azaozz, dav4, ironprogrammer, johnbillion, kkmuffme, monzuralam,
peterwilsoncc, sergeybiryukov.
Fixes #58433.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58433#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list