Forward request header without caching it
-
Hi there,
I have a setup where I need users from a certain country to be redirected on a certain page.
The tech stack includes AWS CloudFront which passes along a request header “CloudFront-Viewer-Country” that has the country code in ISO format, and that is great.
The problem I’m having is that it gets cached and I can’t use it to create the logic I need.
For the first use that lands on the page, it’s ready correctly, but it gets cached. The next user that lands on the same page will have the same value as the first one. Without caching works ok.
No, I can’t turn off cache for that particular page because it should work no matter on what page they land.
Does W3TotalCache have a way to pass that value without caching it?
I know that another solution will be to have CloudFront pass that as a response header in the browser, but that is a workaround.
Thanks a lot!
George
- The topic ‘Forward request header without caching it’ is closed to new replies.