Title: Cache by location
Last modified: October 23, 2020

---

# Cache by location

 *  Resolved [steveokk](https://wordpress.org/support/users/steveokk/)
 * (@steveokk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/)
 * Hi,
 * Just checking if it’s possible to serve content differently based on country 
   location, i’m basically using a currency plugin for woocommerce which geolocates
   each user to serve up the correct currency for product pages.
 * Seems like it be a perfect match if it does work, I also noticed the latest plugin
   doesn’t seem to let you pick a subdomain any more, is there any other way to 
   test this with a staging site.
 * Cheers
    Stephen

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/#post-13579384)
 * Hi [@steveokk](https://wordpress.org/support/users/steveokk/),
    Unfortunately,
   Cloudflare doesn’t allow different cache for different locations. It holds a 
   single cache for the page which is shown everywhere.
 * I also use country-based pricing on my website where I’m also using WooCommerce.
   But for location-based pricing, I’m using Price Based on Country for WooCommerce(
   PRO).
 * The best part about this plugin is that it shows the updated pricing in the shop
   page and the checkout page both of which you can bypass from the cache so each
   time a user visits these pages they will be served from the server showing them
   their own price. Whereas all other pages can be cached both at server disk-level
   and also at the Cloudflare CDN level.
 *  Thread Starter [steveokk](https://wordpress.org/support/users/steveokk/)
 * (@steveokk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/#post-13585030)
 * Thanks for getting back, love the in depth responses you seem to keep doing 🙂
 * hopefully cloudflare eventually make it possible to serve different content per
   country, i’m sure the sites that have gone to the effort to do so would benefit
   the most from edge caching too!
 * is there a way to test the plugin on a sub domain as well? I did notice it wasn’t
   visible in the latest version I tried.
    -  This reply was modified 5 years, 7 months ago by [steveokk](https://wordpress.org/support/users/steveokk/).
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/#post-13585048)
 * Hi [@steveokk](https://wordpress.org/support/users/steveokk/),
 * > is there a way to test the plugin on a sub domain as well? I did notice it 
   > wasn’t visible in the latest version I tried.
 * When you install the plugin on a site hosted on a subdomain it will automatically
   detect that and add the page rule based on that.
 * Thanks. 🙂
 *  Thread Starter [steveokk](https://wordpress.org/support/users/steveokk/)
 * (@steveokk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/#post-13585056)
 * wow, thats great, thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cache by location’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [steveokk](https://wordpress.org/support/users/steveokk/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/cache-by-location/#post-13585056)
 * Status: resolved