Standalone SSL WebApp with Apache as helper

[quote=205650:@Boudewijn Krijger]@Greg O’Lone and @Paul Lefebvre Thanks, I did see that page, but it’s not exactly elaborate.
I tried the following in my HandleURL, which does not work, so I’m sure I’m not doing it right;
(f has the folder item to be returned)

Dim bs as BinaryStream = BinaryStream.Open(f, False) Request.Header("cache-control") = "max-age=300" Request.print bs.read(bs.Length) Request.status=200 [/quote]
You probably need to set the Date and Last-Modified headers at least (Date so the browser knows if there is a difference between its time and yours).

Date: Mon, 29 Apr 2013 16:38:15 GMT Last-Modified: Sat, 27 Apr 2013 00:44:54 GMT

You should also be looking at the headers. You may be getting an If-Modified-Since header, in which case you should be checking to see if the resource has changed since the date supplied in the header and if it’s not, returning a 304 status with no content.

Check section 14.25 of this page: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html