Title: Using Cache-Control header
Last modified: September 27, 2023

---

# Using Cache-Control header

 *  Resolved [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/using-cache-control-header/)
 * Hi,
 * My form plugin uses a Cache-Control header to disable (back/forward) cache:
 *     ```wp-block-code
       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)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/using-cache-control-header/#post-17086137)
 * 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](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/using-cache-control-header/#post-17086616)
 * 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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/using-cache-control-header/#post-17086616)
 * Status: resolved