Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

jsp page cache problem

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


jewel.nuruddin at eastbeam

Feb 8, 2012, 1:13 AM

Post #1 of 2 (181 views)
Permalink
jsp page cache problem

Here is the full configuration of my default.vcl

### Start working for load balance #####
backend web01 {
.host = "10.70.18.10";
.port = "8080";
}

backend web02 {
.host = "10.70.18.11";
.port = "8080";
}

backend web03 {
.host = "10.70.18.12";
.port = "8080";
}

director web round-robin {
{
.backend = web01;
}
{
.backend = web02;
}
{
.backend = web03;
}
}

sub vcl_recv {
if (req.url ~ "\.(png|gif|jpg|swf|css|js|
jsp|html|htm|xml)$") {
return (lookup);
set req.backend = web;
}
}

sub vcl_fetch {
if (req.url ~ "\.(png|gif|jpg|swf|css|js|jsp|html|xml)$") {
unset beresp.http.set-cookie;
}
}

Can you please kindly told me what is my wrong.
This configuration can not cache .jsp file
log is attached
Attachments: varnish.log (17.8 KB)


apj at mutt

Feb 8, 2012, 1:18 AM

Post #2 of 2 (187 views)
Permalink
Re: jsp page cache problem [In reply to]

On Wed, Feb 08, 2012 at 06:13:27PM +0900, Jewel Nuruddin wrote:

> This configuration can not cache .jsp file
> log is attached

According to the varnishlog, /tools/debug/plain/sleep3.jsp is cached, and is
being served from cache.
I don't see a problem.

--
Andreas

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.