Forum Moderators: coopster

Message Too Old, No Replies

Creating Important http Headers in php

         

denisl

2:19 pm on Dec 31, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have only just realised (after several years) that my php pages do not give "Last Modified" in the headers, except where I had copied some code which was a belt and braces effort to stop a page from being cached.

I am now working my way through adding Last Mod info in the hope that it may reduce bandwidth and speed up load times.

In some cases I am creating a correct date from a database field showing when details were edited. In other cases I am taking an easier option by giving "Todays date" 00:00:00 GMT - in other words modified at midnight.

Am I doing the right thing? Are there other important headers I should be adding?

phranque

7:42 am on Jan 2, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you might want to start with this thread:
Conteg v0.13 available on PHP Classes [webmasterworld.com]