Hi,
I'm trying to accomplish that one controller has another
"Cache-Control"-header than the rest of the site.
So I'm trying to do this in the apache-config.
I have the RewriteRule to index.php with the "no caching" set:
<Location />
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule .* /index.php [L]
Header set Cache-Control "no-store, no-cache, must-revalidate,
post-check=0, pre-check=0"
</Location>
And another <Location> for the special controller:
<Location /cachedcontroller>
Header set Cache-Control "TEST"
ExpiresActive on
ExpiresDefault "access plus 1 day"
</Location
The problem now is, that the second <Location>-block never matches, since
the rewriting seems to be done before..
I tried several options by rearranging the blocks and using <Directory>
instead, but nothing worked..
Does anyone have an idea how to do this?
Should I set the Cache-Control Header directly in my application and then
just overwrite it in one controller?
Or is it somehow possible with the apache-config?
Sincerely,
Reto
--
View this message in context:
http://www.nabble.com/RewriteRule-and-matching-%3CLocation%3E-to-Controller-tp21873919p21873919.html
Sent from the Zend Framework mailing list archive at Nabble.com.