• Resolved pawkat

    (@pawkat)


    Hello, I have a problem with page caching. On the site I am developing, on the main page, there is a button that redirects to another page with variable get parameters. The first time the transition occurs correctly, but the next time it is redirected to the page with the get parameters that were set for the first time. Can you please tell me how I can avoid this redirect, perhaps some option can be disabled in the plugin settings?
    You can see the screencast https://monosnap.com/file/mXJnqlat63GEsHOENK8tbcuTL8k6y1

    • This topic was modified 4 years ago by pawkat.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pawkat

    I am sorry about the issue you are experiencing with the redirects and I am happy to assist you with this.
    The disk-enhanced caching method doesn’t support caching redirects.
    Redirects work in that case like if there’s no W3TC plugin.
    Can you please let me know if you are using a caching method other than Disk: Enhanced and if you possibly have the option “Cache URIs with query string variables” enabled.
    Also, after inspecting your website, I can also see that you have mod_pagespeed, so there is a possibility of the double caching layer.
    As I mentioned before, the disk-enhanced caching method does not cache query parameters.
    Thanks!

    Thread Starter pawkat

    (@pawkat)

    @vmarko, thank you for the fast reply.
    My settings:
    Page cache method – Disk: Basic (https://prnt.sc/10uvk6b)
    Cache URIs with query string variables – off.
    I tried to on “Cache URIs with query string variables”, and it’s helpful.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pawkat

    Thank you for the information.
    I am not sure I understand. Does the option help in your case?
    Have you tried Disk: Enhanced?
    Thanks!

    Thread Starter pawkat

    (@pawkat)

    Hello @vmarko
    Cache URIs with query string variables doesn’t help.
    Disk: Enhanced option solved the problem.
    Can you please tell us how Disk: Enhanced differs from Disk: Basic?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pawkat

    Thank you for the information. Glad to know the issue is resolved.
    Disk: Enhanced – avoids invoking any PHP script, instead, it modifies the .htaccess/nginx file to direct Apache2/nginx to a static (cached) version of the resource.
    So you should use “Enhanced” as it serves cached pages using the server’s URL rewriting capabilities, skipping PHP and WordPress entirely. It’s faster and more efficient.
    Thanks!

    Thread Starter pawkat

    (@pawkat)

    Thank you so much @vmarko

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘301 Redirect, ignore query parameters’ is closed to new replies.