Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boost: Add filter on cache parameters so caching is more flexible (#4…
…0894) * Add "jetpack_boost_cache_parameters" filter on request parameters * Use filter to ignore certain cookies when building cache file * changelog * Display removed cookies on the debug cache log. * Add a comment explaining why using a static variable here * Make cookies unique and trim whitespace. * Put all this cookie code together. * Don't nest to many function calls, for readability * Removed -> Ignored in cookie variables * Change cookie list to regexes * Add docblocks for function and filter * Remove the JETPACK_BOOST_IGNORE_COOKIES constant and simplify code * Replace boost_cache_key_components with jetpack_boost_cache_parameters * Added deprecated notice * Fix the arguments on the deprecated filter Co-authored-by: Adnan Haque <[email protected]> * Add function to ignore get parameters * List includes utm_* family of GET parameters * Adds a filter "jetpack_boost_ignore_get_parameters" to modify the list * Fix the sourcebuster cookie regex * Ignore these analytics cookies * Fix the eucookielaw value so those visitors share a cache file * Fix the personalized ads consent cookie too * Check that cookies is valid before using it. Fix PHAN check. * Fixes for PHAN * Update changelog Co-authored-by: Adnan Haque <[email protected]> --------- Co-authored-by: Adnan Haque <[email protected]> Co-authored-by: Peter Petrov <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12926821736 Upstream-Ref: Automattic/jetpack@b33b45b
- Loading branch information