|
Posted by Amer Neely on March 31, 2006, 12:29 pm
Please log in for more thread options
Michael Winter wrote:
> On 31/03/2006 13:41, Amer Neely wrote:
>
> [snip]
>
>> Visit http://www.softouch.on.ca/cgi-bin/confirmation_ie.pl
>
>
> [snip]
>
>> For some reason the submit button on this form is not working
>> properly. It DOES submit the form as evidenced by the date/time
>> change.
>
>
> Then the submit button works properly then, doesn't it. :-)
>
>> What it should do on an empty submit is generate a new image. But it
>> presents the same image repeatedly.
>
>
> Then I should think that it's a caching issue.
>
> Because you aren't sending any freshness information, I suspect that IE
> is making its own guess, but it's too far into the future. The following
> headers should prompt any browser into revalidating a resource at the
> origin server,
>
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Cache-Control: max-age=0, must-revalidate
>
> though an alternative approach is to fiddle the URL; append a timestamp,
> or some other constantly changing number, to the query string.
>
> For an image like this, you could also instruct the browser to not
> bother caching the data at all.
>
> [snip]
>
> Hope that helps,
> Mike
>
Thanks for the reply. I tried your suggestion of tacking something onto
the form URL (date/timestamp) and also cleared cache and deleted files.
That worked once! But then it was back to its old trick. I'll try your
other one about sending those headers.
--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
|