Add excluding parameter to page cache in order to have the same cache key
- composer config repositories.khnaim-custom-page-cache git "https://github.com/khnaim/custom-page-cache.git"
- composer require khnaim/module-custom-page-cache
- php bin/magento module:enable Khnaim_CustomPageCache
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy
To add the parameters, you need to go to the backend Stores > Configuration > Khnaim > Custom Page Cache Settings > Custom Page Cache Whitelist
Consider the following resources for external dependencies:
- Magento_PageCache