|Error 304 help please|
| 6:17 pm on Sep 15, 2001 (gmt 0)|
I am getting a lot of 304 codes in my log files. I added a date which automatically updates each time I make a change to all my pages, hoping this would solve the problem. It didn't.
I then uploaded the whole site again as was suggested by somebody else. That didn't work either, so I wrote to my IP and got this message back:
>"Not Modified 304"
If the client has done a conditional GET and access is allowed, but the document has not been modified since the date and time specified in If-Modified-Since field, the server responds with a 304 status code and does not send the document body to the client.
Response headers are as if the client had sent a HEAD request, but limited to only those headers which make sense in this context. This means only headers that are relevant to cache managers and which may have changed independently of the document's Last-Modified date. Examples include Date, Server and Expires.<
I'm sorry, but this is Greek to me ... can anyone shed any light on the subject? Google has not updated my site in more than two months.
| 6:24 pm on Sep 15, 2001 (gmt 0)|
|The 304 error is somewhat misleading. The Apache Webserver logs it as an error, but it's really this. Someone visits your site today, and tomorrow, they go back to your site. When they do, their local system connects with your server, and then the server tells the local machine that the |
information (html files, images, etc) are already in the cache of that users system, and the information is shown from the cache rather than the server itself. Apache logs this as the 304 error because it hasn't been modified since the last time that the user has accessed that part of your site.
This error is probably the online "good" error a user could get because this means that they have been to your site previously and have returned.
If you wish to not have this error anymore, then include a server side include (SSI) on the most visited pages. This will ensure that the visitor receives an HTML page that is parsed, and it must be parsed by the server (not from cache), thus making your HTML pages come from the server all the time. - ComputerHouse.com
Liane - can you explain a bit more about how you are doing the date? Are you already doing it via SSI?
| 6:40 pm on Sep 15, 2001 (gmt 0)|
Um ... if 304 is a "good error", why hasn't Google updated my pages?
Anyway, I'm afraid I don't know how to write SSI or even what it really is. I realize it is some sort of message for the server ... but have no idea how to go about it.
I added this to each page:
<!-- #BeginDate format:Fr1 -->14/09/01<!-- #EndDate -->
When I modify a page, the date automatically changes. Did I do it wrong?
(edited by: Liane at 6:51 pm (gmt) on Sep. 15, 2001)
| 6:50 pm on Sep 15, 2001 (gmt 0)|
Today's Date: <!--#ECHO var="DATE_LOCAL" -->
and see what happens
| 6:52 pm on Sep 15, 2001 (gmt 0)|
Thanks oilman ... I'll give it a go.
| 6:57 pm on Sep 15, 2001 (gmt 0)|
One more question ... I have this located at the bottom of each page, is it meant to be at the top and if so where?
| 7:47 pm on Sep 15, 2001 (gmt 0)|
you can put it any where you like
| 9:55 pm on Sep 15, 2001 (gmt 0)|
Thanks a lot! I inserted that code onto the index and 4 other main pages which change frequently. After uploading, I noticed that the date only appears on the index page and not any of the others. It is picking up the time the host has, so I guess I did it properly.
Is this code only intended for the main page? Should I change the other 4 pages back to the *Last Modified code* which I installed on all other site pages?
I hope this works ... many prices have changed but the Google cache is still showing old pricing and its causing some problems. Nothing major, but I have had to explain to a few people why they are seeing old prices. One got huffy with me and went away ... but I think he would have gone away anyway.