Forum Moderators: phranque
I have virtually hosted sites on Apache OS that apparently show NO "last-modified-date" from the server and I need to make that happen. HOW DO I DO THIS?
"You don't need to do anything to your pages to use "If-modified-Since", you just need to make sure that what ever web server your on supports it. When the page request is sent to the server it includes the date the robot last saw the page, the server checks the date and if the page has been modified since sends the page, if not it sends a 304 (Not modified) response. "
Yes they do.
More research is telling me that this can be done in the .htaccess file using some form of "setdateheader".
I've found this, but can't figure out how to get it in the .htaccess file properly?
setDateHeader
public void setDateHeader(java.lang.String name,
long date)Sets a header by
long now = System.currentTime();
response.setDateHeader("Expires", now + 15000);
Specified by:
setDateHeader in interface HttpServletResponse
Parameters:
name - name of the header
date - the date in milliseconds since the epoch.
It's all in the manual ;) [httpd.apache.org...]