Forum Moderators: coopster & phranque

Message Too Old, No Replies

When responding to a form must I disable caching?

Or are browsers smart enough to not bother

         

kaled

4:31 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When responding to a form (data sent by POST method) must I place something like Cache-Control: no-cache in the http header?

If yes, is the method I've used the best way to switch off caching?

Thanks,

Kaled.

bird

7:52 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you disable caching of your results page, then a simple back button may cause the browser to repost the initial data, possibly altering your database a second time. Is this what you want?

kaled

11:11 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's an interesting point. I think some experimentation is called for.

Thanks,

Kaled.