#3773 closed enhancement (wontfix)
Dynamic Cache Busting
Reported by: | hnla | Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | minor | Version: | 1.5.1 |
Component: | Templates | Keywords: | has-patch close |
Cc: |
Description
I use a few techniques for working file cache headers or file query strings for versioning, looking at bp enqueue styles while working on new bp child theme I decided to add a variation of one for getlastmod()on files to replace the cache busting version variable.
I've added it to bp functions for the fun of it and attached as a patch.
It simply adds into the WP register function position for versioning string a function that passes the file name through to be parsed though php filemtime() function and date() returning a last moded string.
Added it to all stylesheets bar the child one as wasn't sure without testing what to pass through.
Attachments (1)
Change History (7)
#1
@
13 years ago
- Milestone changed from Awaiting Review to 1.6
Let's have a look at this for 1.6. It looks clever as a general technique.
Add function to dynamically apply file get last mod date/time as ver string