-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flexible cache keys #1391
Comments
A couples of days ago I bumped into cache key configuration on Fastly and Cloudflare. They allow user to form a cache key from arbitrary headers:
The reason to do this - not only cache poisoning mitigation, but also A/B testing, different designs for different countries, desktop|mobile versions. Here is a good article about altering cache behaviour using |
At the moment our site (as well as many other business sites) handle advertisement requests like We need generic solution like Nginx proxy_cache_key, i.e. we need to introduce at least Need to develop a functional test for the options. Also update https://github.com/tempesta-tech/tempesta/wiki/Caching-Responses TBD: some WordPress plugins are able to ignore certain get parameters for caching. So this issue depends on #1276 and we need to map the GET parameters to variables. |
Scope
Some applications need a flexible way to cache content, e.g. the cache key must include
X-Forwarded-Host
header. The current scheme ignoring the header may lead to Web cache poisoning attack (https://youtu.be/oBKoocE5id4?t=1965)Testing
Functional test launching web cache poisoning attack using
X-Forwarded-Host
and any other custom header. The test must clearly show that Tempesta is able to safely handle the requests.The text was updated successfully, but these errors were encountered: