Redirect after POST

Published 22 September 04 by Justin French

It all boils down to the following mantra:

  1. Never show pages in response to POST
  2. Always load pages using GET
  3. Navigate from POST to GET using REDIRECT

The reality is I already knew this, and discovered it a long time ago through trial and error, but it’s really nice to see a clear, concise and detailed explanation of the dangers, the logic and the reasoning behind it all.

If you’re breaking any of the above rules, I urge you to read the article – dig deeper and write some smarter code!

Options

What is this?

portrait of Justin

This is the online home of Justin French, a designer & web application developer located in Melbourne, Australia. I like finding ways to make things work better. I like clarifying and simplifying. I like to understand how you understand things.

» read more

Subscribe to my feed

Follow me on Twitter

@justinfrench

More Notebook Articles

Show more notebook articles

Search