Navigation

ADS specializes in using Ruby on Rails to build advanced, scalable, database-backed web sites for organizations of all sizes. Find out more at our website.

Atlantic Dominion Solutions

Here’s one that can occasionally trip people up, both visitor and developer alike. On pages that contain an upload form, if you submit the form then click the browser’s back button to go back to the form again, many browsers incorrectly handle resubmitting the form thus potentially causing problems in your code. The best way to avoid problems is to block the browser’s cache of the page with the form by adding these lines to your page’s HEAD block:

<meta http-equiv="expires" content="Fri, 1 jan 1990 00:00:00 gmt" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
Share this post

Random Goodness

You can skip to the end and leave a response. Pinging is currently not allowed.

Print This Post Print This Post

Leave a Reply