Make date dynamic in header expiry attribute of htaccess?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Make date dynamic in header expiry attribute of htaccess?

Post by eshban »

Hi,

I am using the following code in my htaccess to "Expire Headers"

[ICODE]
<FilesMatch "\.(ico|jgz|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 21 July 2011 20:00:00 GMT"
</FilesMatch>
[/ICODE]

Currently, i have set the date as static. Is there anyway in htaccess to make this date dynamic.

Thanks
Post Reply