Skip to content

Commit

Permalink
Boost: Add filter on cache parameters so caching is more flexible (#4…
Browse files Browse the repository at this point in the history
…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
LiamSarsfield authored and matticbot committed Jan 23, 2025
1 parent 0a10c7f commit 9a719fd
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 9a719fd

Please sign in to comment.