Hi,
I am trying to configure caching for a website using apache proxy.
Some of the URLs are using a random parameter in the URL to avoid caching.
The URL would look like this:
http://foo.com/folder/xmlfiles/static.xml?rand= 0.36176968908944995
The xml files are static files, but the
On Thu, Oct 4, 2012 at 11:03 AM, Bhattacharya, Sudip
sudip.bhattacha...@genpact.com wrote:
Hi,
I am trying to configure caching for a website using apache proxy.
Some of the URLs are using a random parameter in the URL to avoid caching.
The URL would look like this:
Hi Sridhar,
This would apply to the whole virtual host. I need to enable it for specific
subfolders.
-Original Message-
From: sridhar basam [mailto:sridhar.ba...@gmail.com]
Sent: Thursday, October 04, 2012 9:00 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] How to strip out
On 10/4/2012 11:32 AM, Bhattacharya, Sudip wrote:
Hi Sridhar,
This would apply to the whole virtual host. I need to enable it for specific
subfolders.
Something like this should work:
RewriteCond %{REQUEST_URI} =/folder/xmlfiles/static.xml
RewriteCond %{QUERY_STRING} !=
#The ? at the end
Great. This one worked.
However, it looks like the first request with the query string returns a 301
moved permanently response, requiring another request from the browser to the
file without the query string.
Can this redirection be avoided, so that the server returns the cached file on
the
On 4 Oct 2012, at 16:52, Ben Johnson wrote:
On 10/4/2012 11:32 AM, Bhattacharya, Sudip wrote:
Hi Sridhar,
This would apply to the whole virtual host. I need to enable it for specific
subfolders.
Something like this should work:
RewriteCond %{REQUEST_URI}
On 10/4/2012 12:01 PM, Bhattacharya, Sudip wrote:
Great. This one worked.
However, it looks like the first request with the query string returns a 301
moved permanently response, requiring another request from the browser to the
file without the query string.
Can this redirection be
[PT,L] is not allowing caching. Seems like mod_cache treats it as a dynamic
file, because of the query string.
I may have to live with the redirection option [R=301,L] unless there are some
other alternatives that I can try out. At least mod_cache is able to cache the
redirected url as it does