homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Error 304 help please
Liane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 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.

 

oilman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 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?

Liane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 6:40 pm on Sep 15, 2001 (gmt 0)

Hi Oilman,

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:

Last Modified:
<!-- #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)

oilman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 6:50 pm on Sep 15, 2001 (gmt 0)

Try:

Today's Date: <!--#ECHO var="DATE_LOCAL" -->

and see what happens

Liane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 6:52 pm on Sep 15, 2001 (gmt 0)

Thanks oilman ... I'll give it a go.

Liane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 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?

oilman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 7:47 pm on Sep 15, 2001 (gmt 0)

you can put it any where you like

Liane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 631 posted 9:55 pm on Sep 15, 2001 (gmt 0)

Hi Oilman,

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved