Using mod_rewrite I use this to test if a file exists:

RewriteCond /home/myact/public_html/pagecache%{REQUEST_URI}/index.html -f

How can I test if the file exists and is less than 5 minutes old?

Using a script or from within Apache?

Using a script or from within Apache?

I would like to do this as a RewriteCond

I think you will need to use a CondPattern in that RewriteCond but not sure if it will work. The CondPattern takes on a perl syntax. So, if you can test it with a Perl test, you'll have it. Sorry, that I don't have more info on that. I've never heard of this type of need before.

I think you will need to use a CondPattern in that RewriteCond but not sure if it will work. The CondPattern takes on a perl syntax. So, if you can test it with a Perl test, you'll have it. Sorry, that I don't have more info on that. I've never heard of this type of need before.

Thanks, in that case I may as well rewrite everything to PHP and let PHP do the work.