Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_expire

Status
Not open for further replies.

AmirFusion

IS-IT--Management
Jun 8, 2005
3
I want this:
Content must expire when ever they are modified but visitors should not be forced to download until the content is modofied again.

What should be the directives?
 
Do you make any sence of what you wrote?
No offence, but i don't.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Im sorry if I didnt explain it correctly.

Lets say we have htdocs/image/a.gif

I need to write the directives to set expiry date of the file to whenever it lastly modified by admin.

I can use mod_expire to set the expiry date to the modification date plus 7 days like this:

ExpiresActive On
ExpiresDefault "modification plus 7 days"

But that doesnt help me , because after using above lines will force users to download the file after 7 days although its not modified at all and is still good.

How can I do something to download the file only when the file's modification date in browser's cash is not the same as the one on the server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top