Ok, I have a (little different) solution now.
I created a second bootstrap file "resource.php" which serves the
dynamically generated CSS and JS.
This content gets cached by the client and can reside on the same domain.
Requests to "www.example.com/resource/*" go to the "resource.php" bootstrap,
everything else to "index.php"
Here's my apache config:
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /your/document/root
<Location />
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/resource
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/resource.php$
RewriteRule .* /resource.php [L]
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/resource.php$
RewriteRule .* /index.php [L]
php_flag magic_quotes_gpc off
php_flag register_globals off
</Location>
<Location /index.php>
# No caching
Header set Cache-Control "no-store, no-cache, must-revalidate,
post-check=0, pre-check=0"
</Location>
<Location /resource.php>
# Caching
ExpiresActive on
ExpiresDefault "access plus 1 day"
</Location>
</VirtualHost>
Sincerely,
Reto
--
View this message in context:
http://www.nabble.com/RewriteRule-and-matching-%3CLocation%3E-to-Controller-tp21873919p21889682.html
Sent from the Zend Framework mailing list archive at Nabble.com.