I am following Post / Redirect / Pattern for a simple shape in Symfony2. This form contains an id text field that is dynamically populated in the controller with a random value.
I noticed some odd behavior in Chrome - if the user submits the form and then clicks back, the id field contains the new value. If I edit this identifier and then repeat this process, the value does , is cached, so it looks like Chrome is only trying to cache it if it sees that the value has changed.
This behavior does not occur in Firefox or Safari. Is there a way to get Chrome to work the same? The answer to this question suggests that the problem is to use a hidden field, but since I just use a standard text field, I don’t understand.
source
share