I don't believe mod rewrite plays a part in this issue; googlebot will treat a given page the same way whether it's rewritten or not.
The issue is whether you're bothered about saving some bytes of bandwidth. In a nutshell, you can do something like following:
- check for the If-Modified-Since HTTP request header at the start of the script
- If the header is present, determine whether the content you're intending to serve is newer than the date specified in the header
- If the content has not changed, send a 304 HTTP response to indicate the content has not changed.
- If the content has change, send the content as normal (should be 200 HTTP response).
You should also be sending the Last-Modified header in your responses, so that clients can determine what to specify in their If-Last-Modified header when the re-request the page.
This assumes you can actually determine whether the content has changed; you'd need to be storing date and time information alongside your content, whether that's a column in a table holding the content, or a file timestamp, in order to do that.
You can see some example code of how to do this stuff here. If you're not a PHP man, I'd go for googling if-modified-since and last-modified.
Hope that helps.
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks