Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Changing and checking timestamps for files

by flocto (Pilgrim)
on Jul 03, 2002 at 07:01 UTC ( [id://179087]=note: print w/replies, xml ) Need Help??


in reply to Changing and checking timestamps for files

If I understand you right you should read about the Cache-Control header field in the HTTP header. For example:

Cache-Control: max-age = 3600

This will tell the webserver to send the file, if it has been modified within the last 3600 seconds. Otherwise (if it hasn't been edited for at least 3600 seconds) the server will answer with the Status code 304 (Not Modified) (at least it should. Apache does, that's what I know for sure..)

For cecking the age of the local file(s) use stat or the file test operator -M..

Regards,
-octo-

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://179087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found