Forum Moderators: phranque

Message Too Old, No Replies

Question: Date of HTML doc delivered by Webserver?

Need some help with Apache 1.3x

         

pontifex

7:44 pm on Sep 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi folks,

I wonder if the apache webserver tells the user/viewer of a specific document (URL), when
the document was generated or last modified.

If so, can I influence that directly in the server layer (not with "touch" on the commandline)

Help is appreciated!

Pontifex

Brett_Tabke

10:00 am on Nov 21, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Yes, you can determine the date of the page on the server. It can't be done several ways.

Install something like proxomitron and watch the headers come across in response to a request. Also, reload the page and see if it uses 'last modified'.

Using touch will depend upon your server. Usually, touch will update the date under *nix. I've seen versions of apache though, that will return either inode or the creation date. You can't affect the creation date with touch unless you delete the file and recreate it.