• Resolved Guido

    (@guido07111975)


    Hi,

    My form plugin uses a Cache-Control header to disable (back/forward) cache:

    header( 'Cache-Control:no-store, max-age=0' ); 

    After succesful submission my site visitor is being redirected to a thank you page. I’ve added the Cache-Control header to avoid that visitor is seeing the filled in form again when pressing the back button of his/her browser.

    My question:
    Will this header cause a conflict with WP Super Cache?

    Guido

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

    (@donncha)

    I’m not sure. Please try it and see which cache-control header the browser obeys. If it causes a problem, disable caching again. You could also add whatever page the form is on to the rejected list of URIs in the advanced settings page.

    Or define the constant “DONOTCACHEPAGE” in that page so the plugin doesn’t cache it.

    Thread Starter Guido

    (@guido07111975)

    Hi,

    Thought about it some more, guess I can better look for another solution to avoid possible conflicts with cache plugins in general. Can always add autocomplete="off" to my form.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Cache-Control header’ is closed to new replies.