• Resolved jelmerjellema

    (@jelmerjellema)


    Hi,

    I would just like to add to the mysterious case of https://www.ads-software.com/support/topic/wrong-page-shown-on-post-request-2/. I found out that the cache DOES return the cached page on a post request, when late init is selected.

    We use late init so a plugin can grant access to an otherwise blocked development site, based on the ip of the user. Building a plugin, I found out our reply on form posts is cached when late init is on, and not when late init is off.

    Hope this helps solve that old mystery.

    Jelmer

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Thanks. I was able to replicate this, but the cached page that is served is the page that was cached before the POST request was made.

    There’s no chance the POST data was cached because there’s a check here that stops that page being cached.

    Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Here’s a patch to fix it. It’ll be fixed in the next release of the plugin.

    https://github.com/Automattic/jetpack/pull/36211

    Thread Starter jelmerjellema

    (@jelmerjellema)

    Thanks Donncha! Yes, the page served is an earlier version of the page that was cached during a get-request. In our case this is a “you are not connected, please give the connection code” version of a page.

    Thanks for the change! We love Super Cache over here!

    • This reply was modified 1 year ago by jelmerjellema. Reason: closing
    emilycestmoi

    (@emilycestmoi)

    Came here to report the same issue. Looking forward to the next release that fixes this. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post request cached with late init’ is closed to new replies.