homepage Welcome to WebmasterWorld Guest from 54.198.8.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
if-modified-since
Can't ever seem to get this header to show
ianevans




msg:1247334
 12:26 am on Aug 20, 2003 (gmt 0)

I'm trying to set up some Conditional Get functionality on my site.

On my test files, I'm sending out the last modified header and an Etag, but when I print out the request headers it never seems to contain the if-modified-since request.

Has anyone got this working properly on their site?

 

jdMorgan




msg:1247335
 3:35 am on Aug 20, 2003 (gmt 0)

ian,

If you are sending the last-modified date and an ETag, it should work. It's up to the client to do a CGET, though.

I've set up last-modified, cache-expires, and ETag in my headers, and I see 304 responses in my raw access logs quite often when the files have not been modified.

HTH,
Jim

ProfMoriarty




msg:1247336
 5:03 am on Aug 20, 2003 (gmt 0)

Hello,

I set content-length, last-modified and if needed if-modified-since also. But I didnīt find any documentation how to generate the ETag via PHP. Could you please explain to me? Thanks!

Lars

ianevans




msg:1247337
 5:34 am on Aug 20, 2003 (gmt 0)

jd,

Yes, I know the client handles the cget, but I've been looking at the various PHP scripts that handle sending out the 304 and saving on processing time like Simon Willison's script at [simon.incutio.com ]

I guess I'll check mylogs further to see if the files I've been testing it on have been responding properly.

ProfMoriarty:

That script can do Etags for you as well.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved