Forum Moderators: phranque

Message Too Old, No Replies

Set last-modified in apache running on red hat

         

ankush819

4:35 am on Aug 6, 2014 (gmt 0)

10+ Year Member



Hi

I am running apache 2.2.3 on red hat which is working pretty fine. But, I have issues in making apache send the last-modified date in the response http header. I have tried the following.


1) IndexOptions TrackModified: I have placed this directive in the apache.conf, httpd.conf and site.conf. But, I can neither see the last-modified in the response nor any error for this directives in the logs.

2) SSI variable LAST_MODIFIED: I have tried accessing the ssi environment variable LAST_MODIFIED in the conf files without any success. But I can use the same to print the last-modified in the html documents.


Any help in this regard is greatly appreciated.

phranque

10:14 am on Aug 23, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, ankush819!


I have issues in making apache send the last-modified date in the response http header

are these static resources (files) or dynamically generated content (a script)?

if this is script output, your script will have to determined the last modified date of all the components of the generated content and output the HTTP Response header.