• sneakerlove

    (@sneakerlove)


    Hi as many others i also get Page caching seems not working for both dynamic and static pages when testing cache

    1.
    I connected the api but i didnt do the CL customise cache 3x set up add a:
    /static/ subdirectory at your origin web server and make page rule
    create a .shtml file extension for resources at your origin web server
    add a static=true query string for resources at your origin web server and a Cache Everything Page Rule

    Do I have to do this also using your plugin and also in your plug in? Because cloudflare upon testing also tells me this is not done.

    2. is this maybe done when NGINX is set to cache and serve static content?

    3. Further you are writing :

    If you only use Nginx: it is recommended to add the browser caching rules that you find on this page after saving these settings.

    Open the configuration file of your domain and add the following rules:
    
        location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location = /wp-content/wp-cloudflare-super-page-cache/sneakerlove.net/debug.log { access_log off; deny all; }

    Is this an additional nginx directive (to add)? the

    I HAVE PLESK W APACHE AND NGINX ACTIVE. so does this mean i don’t have to add this when Apache is active?

    4. I also read in your plugin that I have to disable nginx caching and static serving of nginx when using your plugin

    so all in all i am very confused
    many thanks in advance
    ben

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    when I checked your site, I saw just entering your domain is redirecting me to your with with some query sting attached to it which is really bad as with the changing random number in the query string will make it impossible to keep cached for long time: https://i.imgur.com/5iAjvxc.jpeg

    Now coming to the caching not working, it is mainly because along with the cache-control header you have another cache-control header with the value: max-age=0, no-cache, s-maxage=10 which is either added by some server level rule or some other plugin. You need to figure out what is adding that and remove it. https://i.imgur.com/nU4SRRg.jpeg

    Due to this conflict of cache-control header your are having issues. Also as I saw you are using mod-pagespeed on your server. You really don’t need it. It is really super old and ancient, you really don’t need it on any site in 2022 and in future.

    Finally if you have any other page caching system in your site be that at the server level or plugin level, please remove that as well. This is supposed to be the only plugin managing your page cache: https://i.imgur.com/5sIKine.jpeg

    Thread Starter sneakerlove

    (@sneakerlove)

    thank you very much for this info Saumya
    is there any way to easily find out which redirect string it is?

    2. other caching could that also be image caching in a gallery plugin?
    or could it be nginx server caching which is still active right now?
    i understand now you say w-super cache should be only cache

    so don’t need to set up CF cache customisation because they can’t do a speed test and any other tests also fail.

    View post on imgur.com

    Plugin Contributor iSaumya

    (@isaumya)

    is there any way to easily find out which redirect string it is?

    – Unfortunately no. Try disabling your plugins while checking your site in incognito window.

    other caching could that also be image caching in a gallery plugin?
    or could it be nginx server caching which is still active right now?
    i understand now you say w-super cache should be only cache

    – I have no idea. I saw the response header so showed it to you. But as it has a response header, seems like a server level caching.

    so don’t need to set up CF cache customisation because they can’t do a speed test and any other tests also fail.
    https://imgur.com/a/jbcWKXW

    – No you don’t have to.

    Thread Starter sneakerlove

    (@sneakerlove)

    Hi so i found out after a day of research PAGESPEED is creating that serverside cache on plesk apache
    https://stackoverflow.com/questions/57852093/how-to-stop-pagespeed-from-setting-no-cache-on-my-html-page

    I found out as well that the url string (which apparently acts as a307 wp redirect) is from woocommerce gelocating w cache support setting. 

    I’m a little puzzled that you are unaware of this string or have never come across this string before considering woocommerce is the apparently (though primitive) the most widely used wp shop worldwide? Since you are supporting woocommerce in your plugin with ‘don’t cache settings’ already. So does that mean that the (WooCommerce geo locate w cache support) doesnt work with Cloudflare and your plug in WP super cache for cloudflare?

    it will apparently always add the temp url string. 

    this must mean that no one in the world can use woo geo locate w cache support and cloudflare/wp super cache for cloudflare

    so WPSCFCL is not caching and working for me
    geo locate is off causing me to not be able to offer price based on location.Please let me know what i can do
    I have one cloudflare rule added which is cache all for my site do i leave it? delete it or add the other 2 free rules as well?
    thanks in advance

    Thread Starter sneakerlove

    (@sneakerlove)

    Lastly i use Visual Portfolio pro plugin they have an Ajax cache & preload button
    (Reduce AJAX calls request time)
    I am using about a 100 images per individual gallery
    it doesnt add any header cache request

    can i have this setting on?

    Plugin Contributor iSaumya

    (@isaumya)

    I’m a little puzzled that you are unaware of this string or have never come across this string before considering woocommerce is the apparently (though primitive) the most widely used wp shop worldwide?

    – In WooCommerce if you are geoloating, you should not be caching. No I have not seen any Woo shops doing this.

    So does that mean that the (WooCommerce geo locate w cache support) doesnt work with Cloudflare and your plug in WP super cache for cloudflare?

    – When using this plugin you need to ensure that there is no other caching involved in the site.

    it will apparently always add the temp url string.

    – That is the problem. As hypothetically even if CF cache the URL with that temp string added to it, next time any user visit the same page it might have a different string hence it won’t be able to fetch from CF cache.

    geo locate is off causing me to not be able to offer price based on location

    – For this I have personally used https://www.pricebasedcountry.com/ and also seen it working well with caching.

    I have one cloudflare rule added which is cache all for my site do i leave it? delete it or add the other 2 free rules as well?

    – Please share a screenshot of the page rule section of yoru CF dashboard.

    `Lastly i use Visual Portfolio pro plugin they have an Ajax cache & preload button
    (Reduce AJAX calls request time)
    I am using about a 100 images per individual gallery
    it doesnt add any header cache request

    can i have this setting on?`

    – Ajax are basucally calls bade from JS which works well with caching unless your ajax implementation is using WP nonces. As in case of WP nonce those pages cannot be cached as nonce value expire very quickly. So, if your plugin is just using ajax calls without any nonce then you won’t have any issue with caching.

    Thread Starter sneakerlove

    (@sneakerlove)

    Hi Saumya btw my page went from 18 seconds to 3,1 sec interactive in page test so thanks for the help and your plug in so far!!!!!! I will now get autopmize also

    – Please share a screenshot of the page rule section of yoru CF dashboard.

    View post on imgur.com

    Plugin Contributor iSaumya

    (@isaumya)

    Your page rules looks good. But if you have an eCommerce site the worker mode is recommended for better cache invalidation across different e-commerce use case.

    Thread Starter sneakerlove

    (@sneakerlove)

    many thanks for your reply!
    workers so the cf add on. I see two http routs and 2:
    Workers KV
    Store application data in the Cloudflare network and access your key-value pairs from Workers. You can read and write key-value pairs in your namespaces via the API and bind them as resources inside Workers

    its all black magic to me but assume its 2. Actually serving images fast is the most important issue for me

    Plugin Contributor iSaumya

    (@isaumya)

    The worker of this plugin does not need use any KV feature. With worker you will get 100,000 requests per day fro free after which you have to pay.

    Thread Starter sneakerlove

    (@sneakerlove)

    hi are we talking about worker purchased from cloudflare

    or worker purchased from your plugin
    many thanks

    Mat

    (@mateithemeisle)

    Hello @sneakerlove ,

    @isaumya is referring to the CF worker as this plugin doesn’t have a paid version as of now.

    This plugin will activate workers on your website which are limited to 100,000 requests per day for the free plan of CF.

    Thank you and have an amazing day!

    Thread Starter sneakerlove

    (@sneakerlove)

    @matt thanks a lot for the answer. I didn’t know there was another cf worker (just called worker) and which will then be activated and limited to 100k calls by cf.
    thanks

    Thread Starter sneakerlove

    (@sneakerlove)

    sorry another question after caching works great on desktop speed wise.
    my mobile loading time on internal html site links, is insanely slow (and not talking about the content loading) just reaction when clicking a html link. Basically when clicking an internal link reaction time is between a few to 5-6 seconds before any thing happens. is this a caching issue? or is there any way to analyse this problem

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @sneakerlove,
    Inside the plugin settings > others tab try enabling this settings: https://i.imgur.com/3RdRDul.jpeg and see if that speeds things up.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Page caching seems not working……. Question w set up’ is closed to new replies.