httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] mod_rewrite + mod_headers :How to set Cache instructions for Rewritten .swf content only ?
Date Fri, 11 Dec 2009 02:25:08 GMT
<FilesMatch "\.(swf)$">
Header set Cache-Control "must-revalidate, proxy-revalidate"
Header set Pragma "public"
</FilesMatch>

or use mod_headers commands per content (read the mod_headers instructions
on apache.org)



On Fri, Dec 11, 2009 at 12:53 PM, ABAPGUY <abapguy@yahoo.com> wrote:

> Hi Apache Experts,
> I wish to set 2 Cache statements for .swf files (only) . I am rewriting
> using mod_rewrite and have enabled mod_headers .
> My 1st attempt did not work  :
>
> RewriteCond %{REQUEST_URI} \.(swf)$ [NC]
> Header set Cache-Control "must-revalidate, proxy-revalidate"
> Header set Pragma "public"
> RewriteRule ^/<flash_dir>/(.*)\.swf https://<servername>/<flash_dir>/$1.swf
> [P,NC,L]
>
> It seems RewriteCond is applied to the next Rewrite rule ..but the Headers
> are set for all subsequent Rewrite rules ..not what I wanted .
> Is this the wrong way to do it ? How do I set the Headers for .swf files
> only ?
>
> Regards
> Daniel
>
>

Mime
View raw message