On Wed, Jan 17, 2007 at 05:36:48PM -0000, Duncan Garland wrote: > What does everybody else do?
I was wondering about this once before and found the following in the archives someplace. I now use it in a few places, that need to be handled by mason, but should be cached by the client. (The optimal solution obviously is if it's static, let apache handle it.) Note we have POSIX loaded earlier. <%init> $r->header_out('Cache-Control', 'public,max-age=3600'); my $stat = File::stat::stat $m->request_comp->source_file; my $mtime = strftime("%a, %d %b %Y %H:%M:%S GMT", localtime($stat->mtime)); $r->header_out( 'Last-Modified', $mtime ); </%init> <%once> use File::stat; </%once> -- jcap ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users