Cache and geolocated content
-
Hello,
I am evaluating whether it will be possible to use this plugin for my geotargeted sites.
Currently, the way I have this setup is that I have a worker which adds geolocation headers to server requests, based on the values of CloudFlare’s
request.cf
object. Then, on the server, I show/hide content based on these headers. I am able to serve most of these pages from the LiteSpeed public cache, as I have a directive in place that varies the cache, based on the country and region.Basically, I am wondering if it is possible to achieve the same setup, except replace the LiteSpeed public cache with CloudFlare’s own cache. I assume it should be possible to modify this plugin’s worker to add the new request headers, but any ideas on what would be required to split up the CF cache based on the country/region? Then how can one go about invalidating that cache using the plugin? And what about preloading it from the various key locations?
- The topic ‘Cache and geolocated content’ is closed to new replies.