As the title says, I need to stop a user's browser from caching the form they've submitted.
Is there any way of doing this?
As the title says, I need to stop a user's browser from caching the form they've submitted.
Is there any way of doing this?
Try this:
<form method="post" autocomplete="off">
Hi vibhaJ
I'm a little confused by your suggestion. Could you explain how turning auto complete off stops the form from being cached?
The 'cache-control' HTTP header is used to instruct web clients on resource caching.
You could try setting this with a meta tag in the header your HTML page, like....
<meta http-equiv="cache-control" content="no-cache" />
... or possibly set the header for a resource from within your web server's config.
Hi LaxLoafer
Thanks for the suggestion. I'll give it a try.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.