A dynamic-post-form that should be cached using eTag. Navigation:
- A user browse to the form
form.html
and recieve the status 200 having the new eTag"DNEI297"
within the response from the server. Now the browser caches this document in the cache. - The user enters some values and finally post the form-data to
form.html
(browser to server) and recieve from the server the HTTP status code 205 (accepted/reset form data) and the unchanged eTag"DNEI297"
. - Since the 205 response is empty in this case, the browser reload the page
form.html
using the eTag"DNEI297"
. The server compares the eTag with his eTag and decide that neither the form nor the eTag changed and the browser already have cached the correct version of theform.html
and send a 304 (unchanged).
Now the Problem: Since the Server sent a 304 the Browser took the last request and decide to use the cached version. But the cached version is the answer of the post-request having status-code 205 and the eTag "DNEI297"
.
Finally after the submit of the form the document http-status is 205. How to avoid the wrong code? It makes trouble and produce alerts from antivirus-plugins.