• Resolved rockinaway

    (@rockinaway)


    Hi, I know that the ?swcfpc Is added to URLs to avoid caching for logged in users. However, what I have found is that if I am logged in on a browser window, if I paste the non-swcfpc URL in the browser, I still get taken to the non-logged in page and I am not automatically redirected to the logged in version despite being logged in in the same window and session. The reason this is a concern is that my users may come across results in Google and go to the non-swcfpc URL and it appears as though they aren’t logged in even though they are. Any help with this?

    thanks

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter rockinaway

    (@rockinaway)

    I’ve been doing some research and came across this: https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2?fbclid=IwAR3dSA8vHUdRi0TCSiNp3Yy-0NMS6mSBEojMQ8s7OduXS3ETF8rdAtLwvVc

    Would this manage the issue? Am I able to do this on a CF Free Plan? (the setting warns it needs to be business or above)

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    If you would like to get rid of the swcfpc cache buster quer param, then follow the instructions mentioned in the implementation guide gist which link you have shared above. This will resolve your issue as there will not longer be any cache buster query params.

    Also check: https://wordpress.org/support/topic/is-workers-slower-than-the-page-rule-setting/#post-16284616

    Thread Starter rockinaway

    (@rockinaway)

    Thank you for the reply! So I tried that method but it led to some strange results. I found that some pages still went to the logged out page even though I was logged in. And weirdly, if I navigated to a page while incognito and copied that URL to my browser session and navigated to it, it always showed me the logged out version. So I’m unsure what was going on – particularly for the first situation?

    Thread Starter rockinaway

    (@rockinaway)

    Sorry I’ve marked this as resolved but it isn’t!

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    You might have mis configured the cache rules. Can you share the screenshots of the Page Rule section in your Cloudflare Dashboard and also share the screenshot of each Cache Rule you have.

    P.S.: I’ve also marked the thread as “not resolved” again.

    Thread Starter rockinaway

    (@rockinaway)

    Sure, I have attached here:

    https://ibb.co/HPdsKNq
    https://ibb.co/8xWT6CT
    https://ibb.co/VqRH2bv
    https://ibb.co/FmWrmNQ

    They are currently disabled as I disabled the functionality. I even wondered if it was a propagation issue but I gave it a few hours (more than enough for Cloudflare) before testing it.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    your website address is: https://www.examinedental.com/ which makes your hostname www.examinedental.com and not examinedental.com. So, please fix your cache rules.

    It is also mentioned in the implementation guide:

    Also, you have not shared the screenshot of the PAGE RULES section from Cloudflare dashboard.

    Thread Starter rockinaway

    (@rockinaway)

    Oh I’m so sorry! Thank you – will correct that and try again.

    Here is Page Rules: https://ibb.co/gw6gPZ5

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    Thanks for sharing the screenshot of the page rule section:

    1. I don’t see the page rule added by this plugin. Inside the plugin settings page, please Disable/Enable the Cache so that the plugin can auto create the page rule it needs.
    2. I have no idea why you want images not to be cached. This makes no sense. Images are static files which is best to stay cached longer both in the Cloudflare CDN cache and in browser cache. God knows why you would not want that as it will harm your performance.

    Once you fix the matters mentioned above and also fix the cache rule issues, your problem should be resolved.

    Thread Starter rockinaway

    (@rockinaway)

    Thanks I will try that.

    The images rules were added because the website wasn’t caching WebP images at all until this was done. Thanks for your help

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    That is wired. I don’t know what system you use for the webp images, but I would suggest you to go with either Cloudflare Pro (Polish) or Optimole or Imagekit.io all having great on the fly image optimization.

    Thread Starter rockinaway

    (@rockinaway)

    Thank you Saumya! I currently use Converter for Media as that was the only option that was handling bigger file size conversions to next-gen formats. However, ImageKit.io looks like a very good option even at a free level.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    Yes if you don’t have high traffic, imagekit.io and optimole are great choices, but if you have high traffic, Cloudflare Pro will be better as you will get unlimited image optimization and unlimited traffic with Cloudflare Polish.

    P.S.: If your problem has been resolved, please let me know so that I can resolve this thread. Also if you love the plugin please consider sharing a review.

    • This reply was modified 3 years, 2 months ago by iSaumya.
    Thread Starter rockinaway

    (@rockinaway)

    Hi Saumya, So I have enabled the plugin again and I have done the rules as you have advised. However, the same problems as originally described persist. Any further help?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @rockinaway,
    Can you share the screenshot of the cache rules and the page rule section again? So, that I can see the current status of them? Thanks.

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Logged in not redirect to non-cached pages’ is closed to new replies.