Using HTTP 304 code

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello

I'm trying to make a web browser in vb6. I'm unable to hand to handle
the 304 code (cache check). Can anyone tell me what request is sent by
a browser to a webserver in order to check from the webserver whether
a file has been updated or not.

Im trying to send this request:

GET /test/index.asp HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
If-Modified-Since: Mon, 28 Jul 2008 09:25:35 GMT
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
Q312461)
Host: localhost
Connection: Keep-Alive


The 'if-modified-since' shows the date of the file on the server. As
per my understanding, the server should return HTTP 304 code if the
file is of the same date on the server. But instead its returning the
complete file again. Therefore my cache system is not working
properly.

Any advises ?
.



Relevant Pages

  • Re: IIS 6.0 Not Caching Images
    ... There is a known bug where if a 204/304 is fulfilled from the kernel ... regardless if it is fulfilled from the kernel response cache or not. ... request is cached in kernel mode (in addition to using WFetch to make the ... server or not -- you need perfmon to determine. ...
    (microsoft.public.inetserver.iis)
  • Re: Why One PC right page & the other wrong page
    ... > cache which is looking for those it might just return an Ok to them. ... > IE would have been using if you had only pressed F5) or that the server ... The idea is to make the request look like ... >> and relooked through my old dial up connection I did get the new web ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: query parameters at the end of the JavaScript file
    ... Browsers are not supposed to cache GET requests with queries AFAIK. ... Are you aware of any browser that doesn't cache a GET request? ... is repeated to the server, ...
    (comp.lang.javascript)
  • Re: query parameters at the end of the JavaScript file
    ... information in the query is a version number. ... Browsers are not supposed to cache GET requests with queries AFAIK. ... Are you aware of any browser that doesn't cache a GET request? ... search engine on the web due to overload on the server of constantly giving the same search out. ...
    (comp.lang.javascript)
  • Re: BBC TV 4 - Hawkwind: Do not panic
    ... request for a Web page over port 80 to a server. ... makes an entry that the web browser sent a request out on a certain ...
    (uk.comp.sys.mac)