Hi,

I've been having problems preventing IE from caching pages on an Active4D 3 site (4D 2004 server) that requires extra security. After checking a few things I managed to fix the problem, but in a nasty hack way.

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. Doing:

set response header("X-VERSION";"HTTP/1.1")

... doesn't seem to have any affect.

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

... which works but seems a bit nasty. 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).

Any ideas why A4D is giving a 1.0 response? Is there a better way of fixing this?

Cheers!
        
Tony Pollard, Another Dimension Ltd          Phone UK:    01708 701511
http://www.anotherdimension.co.uk      International:  +44 1708 701511

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to