Support » Plugin: Super Page Cache for Cloudflare » Mobile page theme and Cloudflare/caching plugin integration

  • Resolved diriras

    (@diriras)


    Hello,

    Many thanks to the Dev for this incredible free plugin! It enables options that you can find only in paid subscription of the Cloudflare! Amazing!

    The only thing missing for a totally 5***** is the separation of the Desktop and Mobile page cache! I don’t know if this is possible but when a website uses mobile pages for different structure, then the cashing doesnt work for the mobile page!

    Wordpress Newspaper theme (No1 of all times) uses mobile pages and I’ve managed to get it to work with Wp fastest cache because it has a separate mobile cache in its options.

    I really want to use only your plugin because it is much faster but I cannot get it to work with mobile caching!

    I have 2 staging environments https://exclusiveweb.gr and https://nealive.gr to make our tests so if you need creds for these 2 please inform me!

    Waiting for your opinion in this!

    Regards,

    Michael

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Saumya Majumder

    (@isaumya)

    The only thing missing for a totally 5***** is the separation of the Desktop and Mobile page cache! I don’t know if this is possible but when a website uses mobile pages for different structure, then the cashing doesnt work for the mobile page!

    – Yes it is possible but not in a straight forward way as Cloudflare itself doesn’t cache a page based on device or anything. It simply cache contain based on URL. So, one URL is considered as one item.

    Now if you wish you have device based caching, first of all you need to use the worker mode in the plugin (as it is not possible in the default page rule mode) after that you need to overwrite the default worker code with a bit of custom code in it to have the device based caching feature.

    To know how to overwrite the default worker code, check the FAQ section inside the plugin settings, it is already explained there. Now coming to the custom worker code that you need for the device based caching, you will find the code here: https://gist.github.com/isaumya/b4776a7f7b7c56a50aa8e75f1dd60aa8

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile page theme and Cloudflare/caching plugin integration’ is closed to new replies.