Request: filter for version string?
-
Would you consider adding a filter call for the generation of the randomization string? Something like this:
includes/class-super-light-cache-buster.php: ? ~line 525
$random_number = apply_filters( ‘slcb_version_string’, wp_rand( 1000, 520000000 ) );
We want to use this when we make a css change that browsers have a hard time letting go of, but we don’t want to totally disable caching. Hooking that filter would allow us to return a fixed string so it would reset older cached items but allow forward going caching to work until we changed the string again. This seems to be working in my testing, although I have only done a small amount so far.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Request: filter for version string?’ is closed to new replies.