http request status: 304

http request status: 304

Post by Lukas Neuburge » Sun, 08 Feb 1998 04:00:00



I'm currently using Apache 1.2.5 with proxy/caching features
enabled. Is there away to determine whether a request for a
document was served from the web server's cache?

I thought the status code of 304 indicated it had been retrieved
from cache, but apparently this code is also returned when the
request is satisfied by client side cache.

Any ideas,

Lukas

PS. e-mail responses preferred

 
 
 

http request status: 304

Post by Paul Sutto » Tue, 10 Feb 1998 04:00:00



>I thought the status code of 304 indicated it had been retrieved
>from cache, but apparently this code is also returned when the
>request is satisfied by client side cache.

Yes, that's right. 304 isn't really related to the server-side of
proxy/cacheing.  If you see a 304 in the access_log it means that the client
had the content in its cache, and it is not out-of-date. See the
HTTP/1.1 spec for more details.

Paul
--
Paul Sutton
Apache Week ..... latest Apache news ..... http://www.apacheweek.com/

 
 
 

1. HTTP/1.0" 304 0 HTTP/1.0 304 Not

modified
Distribution:
Followup-To:
Organization: Open Software Foundation
Keywords:

Hi,

        This might be a clumsy question, but I could not find a better way
to put it. The browser gives me this error once a while, and refuses access
to the a page.

HTTP/1.0" 304 0 HTTP/1.0 304 Not modified Date: Mon, 02 Dec 1996 15:19:22 GMT Server: NCSA/1.4.2

I got around it by modifying the source file and saving a new
copy. Why does this happen at the first place?

Also, anyone know where I could find the complete error code mapping for
HTTPd? Thanks

+***********************************************+
|   James Mak           Open Software Foundation|

|   DCE                 uunet!osf.org!mak       |
|                       617 621 8805            |
|                       617 621 7324 (fax)      |
+***********************************************+

2. T2 machine check messages in log file?

3. Incorrect 304 status codes with Apache

4. MBone tools for NetBSD-1.1/i386

5. CERN 3.0: Status 304 in httpd-log.log

6. uptime and w fail

7. HTTP/1.0" 304 -

8. FAQ: comp.lang.awk: pointer

9. Apache status code 304 problem/question

10. Definition of httpd v1.3 status code '304'?

11. HTTP 304 on Apache 2.0.39

12. Problem with cached pages with Apache 2/php (server responds with http 304)

13. Apache Proxy server that will transform an HTTP request in a HTTPS request