| 8:36 am on Oct 6, 2003 (gmt 0)|
I've seen examples using php to set up 301 redirects. Is there a way to use php to modify the last-modified date for a page?
| 10:14 pm on Oct 6, 2003 (gmt 0)|
header('Last-Modified: '.gmdate('D, d M Y H:i:s \G\M\T', time()));
| 12:13 am on Oct 10, 2003 (gmt 0)|
| 1:47 am on Oct 10, 2003 (gmt 0)|
The date/time format for a last-modified header, does it have to be an exact format? The example I found when searching google shows the date format as being something like:
"1st Jan 2003, 12:45AM GMT"
however, would it also be acceptable to use
What about the GMT part, what if your server time is not GMT time, do you have to modify the time to be GMT time, and is the GMT part required in the format? Say I'm hosting a web page down here in Australia, and it's 9:00AM, I've just updated it. On the server, the file is now marked as being modified at 9:00AM, on Friday 10th October, but that's actually Thurday 11th, 11:30PM GMT. So now I'm serving up a file with the last-modified date which is actually in the future. What happens here? Could you theoretically set your server date/time to 2010, modify your files, and they will be fresh until 2010?
| 9:50 pm on Oct 10, 2003 (gmt 0)|
|do you have to modify the time |
Whoa! Once the date-modified is reset on Linux servers it stays that way for a certain number of days. When Google checks it all it sees is that the file was "recently modified". After the time expires the file is not "recently modified" and Google does not consider it "freshly updated".
Get a grip,grab a Fosters,take a couple of chill pills and calm down.
| 10:46 pm on Oct 10, 2003 (gmt 0)|
<deleted - it deserves a thread of it's own>
| 4:48 am on Oct 11, 2003 (gmt 0)|
The reason I ask is because I have a page that includes another file which is updated quite often, but the page itself isnt. I would like google to crawl the updated content often, and so I am setting the date modified from the file:
last_mod_date = f.DateLastModified
response.AddHeader "Last-modified", last_mod_date
All I really want to know is if that is enough to make googlebot crawl the page again? It's not about the fresh tags as claus must've thought ;)
| 9:43 am on Oct 11, 2003 (gmt 0)|
If your content has changed because of some script or whatever but the page itself hasn't had its timestamp changed, you could make Google think the page has been recently updated by setting up a cron job to "touch" the page every night.
This is just a technical solution, but I wouldn't use it myself - it just seems like you're trying to cheat the SE's somehow. Maybe not spammy, but perhaps not entirely ethical.
| 11:48 am on Oct 11, 2003 (gmt 0)|
Personally i don't think Googlebot ignores the content of the page.
| 11:58 am on Oct 11, 2003 (gmt 0)|
Claus - you're saying that Google takes every page and compares the content to the cached version to see if it's been updated? Surely that would take up massive processing power (which I know they have, but this would be too much). Wouldn't it be far easier for the bot to simply check the timestamp for the page?
| 1:21 pm on Oct 11, 2003 (gmt 0)|
>> you're saying that Google takes every page and compares the content to the cached version
That might be saying too much. I didn't do it ;)
At least i didn't intend to. I intended to say that you could rebuild the page in stead - that way it will get a new timestamp, as the content of the page (and the page itself) will have changed.
| 1:30 pm on Oct 11, 2003 (gmt 0)|
Of course you are right - if you rebuild the page you will get new content and a new timestamp, but my understanding of this thread was that people only had new content due to SSI including other files. In this case the main file would not get a new timestamp.
| 1:50 am on Oct 12, 2003 (gmt 0)|
I dont think I'm trying to cheat the engines, after all if the page isnt updated for 4 weeks, it will still report that date of 4 weeks ago. I'm not unnaturally setting the date, it is the last modified date.