Google Chrome keeps caching form submission page results!?

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Reaction score
13
I've been tearing my hair out right now. At first I thought it was Output Caching on IIS7 being a douche, and I distinctly remember turning that OFF (which I did for .asp pages)

I made a few changes to a client's e-commerce "successful order page" (www.example.com/checkout-success (rewrites to the checkout_success.asp page))

The "in process please wait page" submits the successful order ID to www.example.com/checkout-success and in that page I do something with the order ID (or that's the idea) before displaying the successful message.

On that page I've done:

<%
pStr = "private, no-cache, must-revalidate"
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", pStr
%>

and added:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

but Google Chrome caches the page regardless leaving me looking at the old "before the changes" page. I cleared my cache and got the newer changes, but the Order ID never popped into the hidden input I placed there. Made a few changes and still nothing. Changed it to something random, nothing, nil. All the while it ignores the meta tag and somehow the new headers sent through from ASP itself??

All the while IE & Firefox shows it perfectly.

WHAT
THE
****!?!?!
 
Thanks. I saw this is a Chrome bug, you have to use no-store instead (or with) no-cache in the headers you set before it doesn't cache the page anymore.

What is strange though is this... I do:

Response.Write OrderID <-- Everything works fine and the order ID prints out on the page

Immediately after I do

Response.Write "<input type=hidden name=orderid value=" & OrderID & ">" <-- I get blank "value" as if OrderID isn't set anymore. Same goes for:

<input type="hidden" name="OrderID" value="<%=OrderID%>">

It's driving me ****ing insane since this WORKS in IE & Firefox completely. How the **** can this only be happening on Chrome when the ****ing code is processed SERVER SIDEEEEE!!!!! FUUUUUUUUUUUUUUUUUUUUUCK!!!!!
 
Top
Sign up to the MyBroadband newsletter
X