httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Automatically added query var to all URLs
Date Sat, 16 Oct 2004 12:17:10 GMT
CSN wrote:
> I just want to have the GET var "cache=false" added
> (once) to any and all requests. I have several sites
> running out of a single directory and need to
> enable/disable caching on a per site basis

Possibly you can get away with something like this (may need some tweaking):

    <Directory /path/to/stuff>
        RewriteRule (.*) $1?cache=false [QSA]
    </Directory>

See the docs on RewriteRule for details.

Regards,
Robert Andersson 


---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message