I've tried that also, did't worked either, There seems to be a bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=49308, covering
this issue. But I don't know when it'll be fixed.

On Wed, May 19, 2010 at 7:31 PM, Igor Cicimov <icici...@gmail.com> wrote:
> Use mod_expires instead
>
> Sent from my phone
>
> On May 19, 2010 11:42 PM, "Pablo Garcia Melga" <mal...@gmail.com> wrote:
>
> Hello,
>
>  I'm struggling with a configuration that doesn't seems to work
> I have an httpd 2.2.15 running on RHEL 5.3 loaded with mod_rewrite,
> mod_headers, mod_expires and php
>
>
> I have configured this rewrite rule
> RewriteRule "/c([0-9]+)-([a-zA-Z/-]+)-p([0-9]+)(.*)"
> "/nl_listado.php?categoria=$1&pagina=$3"
>
> Works fine, no problem.
> Now I want to remove all cache-related headers sent by the php and set my
> own.
> So I put these lines in the config.
>
> <Files nl_listado.php>
> Header unset set-cookie
> Header unset Expires
> Header unset cache-control
> Header unset Pragma
> Header set cache-control "public"
> Header append cache-control "max-age=1200"
> </Files>
> <FilesMatch "/c([0-9]+)-(.*)">
> Header unset set-cookie
> Header unset Expires
> Header unset cache-control
> Header unset Pragma
> Header set cache-control "public"
> Header append cache-control "max-age=1200"
> </FilesMatch>
>
> Neither of these seems to work as expected, instead I get a mixed response.
>
> This are the response headers without the sections
>
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0, no-cache
> Expires: -1
> Pragma: no-cache
>
> And this are the response headers after I place the above configuration.
>
> Cache-Control: public, max-age=1200, no-cache
> Expires: -1
> Pragma: no-cache
>
>
> I've tried with different versions of httpd, also compiling the
> modules statically, but I found no way to make this works.
> The weird thing is that the mod_headers kicks in and append the
> "public, max-age=1200" to the response, but doesn't remove the
> no-cache, Expires and Pragma headers.
> Any ideas ?
>
>
>
> Regards, Pablo
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to