Checking the HTTP header response (using an HTTP header viewer) I
noticed that the version was set to HTTP/1.0, even though it's a
1.1 request. Microsoft specifically say that cache control doesn't
work for them unless they see HTTP/1.1.
The reason I set the response to 1.0 was because of a nasty bug in
Win IE that prevented https requests from working correctly. I can't
remember the details any more, it was a while ago, and may have been
fixed since then.
In any case v4 uses HTTP 1.1 as the response version.
The only way I could tackle this was to hack the Active4D "On Web
Connection"
and add:
$i:=Find in array(A4D_ResponseHeaderNames;"X-VERSION")
If ($i>0)
A4D_ResponseHeaderValues{$i}:="HTTP/1.1"
End if
You don't need the find in array, it's always accessible via
A4D_ResponseHeaderValues{A4D Response Version}.
... which works but seems a bit nasty.
Sometimes you gotta do what you gotta do.
I also noticed that "Expires" is set to tomorrow even though I've
got expires = 0 in the Active4D.ini file (and it has been since
start-up).
Hmmm...that shouldn't be. Could be a bug in SET HTTP HEADER. I know
this works correctly in v4/4D 2004.
Is there a better way of fixing this?
Yes, please upgrade to v4!
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/