Hi
I'm trying to write a http proxy server using HttpListener, but it's not caching any results. Is there any setting I have to enable for the (kernel) cache in http.sys, or is this at all possible with the HttpListener?
My http headers (always response 200 OK, never a 304 not modified which is what I'd expect/am after):
http://localhost/css/common.css
GET /css/common.css HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
If-None-Match: "b1f1ece4-9b02-49e3-89db-22669c0ab0c2"
Cache-Control: max-age=0
HTTP/1.1 200 OK
Content-Length: 517
Content-Type: text/css
Content-Encoding: gzip
Server: IoIo Microsoft-HTTPAPI/2.0
Etag: "b1f1ece4-9b02-49e3-89db-22669c0ab0c2"
Date: Sun, 15 Sep 2013 16:41:22 GMT
Connection: close