1
vote
1answer
701 views

How to configure Varnish not to cache a particular folder?

I would like to set up Varnish as reverse proxy cache for Apache. How can I setup Varnish so that it does not cache content from a particular folder (and its subfolders), let's say ...
0
votes
1answer
90 views

Varnish Working with Custom http response Headers

I am trying to read http response header that holds an "cacheable". For Example: if (req.http.X-Type ~ "cacheable") { unset req.http.Cookie; return(lookup); } I've Tried a lot of things ...
1
vote
0answers
206 views

trouble with github behind Varnish caching servers

We are a development team in Europe (Berlin to be precise) that heavily depends on the availability of raw.github.com. Our CI server way to often (sometime in 50% of all cases) reports failed builds ...
1
vote
1answer
101 views

varnish3.0.2 rewrite the url howto

I have lots directories which have the same image "_a.png",like these: /data/images/{a,b,c,d} Because this, the varnish cache multiple copies. Now I want to rewrite the urls to one,like this: if ...
1
vote
0answers
121 views

Is Snort able to efficiently demux and log large HTTP POST requests?

I'm trying to debug some failed HTTP POST requests containing large file uploads (~500 MB). The end-user is receiving strange HTTP responses that are not being logged in either varnish's varnishncsa ...
1
vote
0answers
222 views

Varnish. Wrong outgoing IP?

I have the following: backend default { .host = "127.0.0.1"; .port = "8080"; } acl purge { "127.0.0.1"; } sub vcl_recv { #cloudflare remove req.http.X-Forwarded-For; if ...
3
votes
1answer
558 views

Varnish purge on POST or PUT

In my application stack, I'm using CouchDB (in this scenario, to all intents and purposes it's a simple REST server) and I want to put Varnish in front of it to alleviate read load. I know that ...
0
votes
1answer
260 views

configuring varnish, and document root directory of varnish

due to heavy load and disk issue we are going to use varnish webserver we have worked on nginx and apache webserver we heard that varnish is little more fast because it store web pages in memory ...
7
votes
5answers
3k views

Which reverse-proxies support HTTP/1.1 ETag and If-None-Match headers?

I'm developing a caching system for an ecommerce platform that will use a reverse proxy for caching. I plan to handle invalidation by using proper HTTP/1.1 headers. That is, I will set an ETag on ...
1
vote
2answers
2k views

Varnish cache throwing 'Error 400 Bad Request'

I am running a varnish 3.0 server with nginx/php-fpm/wordpress behind it at http://www.whatsthatbug.com. Most folks seem to be able to get to the site just fine. But I have one visitor who is getting ...
5
votes
1answer
920 views

Use Cherokee Instead of nginx in Front of Varnish to Get HTTP 1.1 Optimizations?

We have been running nginx -> uWSGI, and now we are evaluating putting Varnish as a caching layer between nginx and uWSGI (similar to http://www.heroku.com/how/architecture). But, nginx only supports ...
4
votes
1answer
1k views

Varnish doesn't seem to be caching

I've setup a Varnish cache mirror to sit in front of a file server, but it seems to be endlessly re-downloading data from my file server. There's about 100GB of data in total, but so far Varnish has ...
2
votes
3answers
670 views

Using nginx and/or varnish to cache server-generated 301 redirects

I'm implementing a sort of url-shortener service. What happens is that I have some backend app server that takes in a request, does some computation and returns a 301 redirected url back upstream to ...
3
votes
2answers
3k views

How to make Varnish ignore, not delete cookies

I want to use Varnish to cache certain pages even in the presence of cookies. There are 3 possibilities that I need to take care of: An anonymous user is viewing some page A logged in user is ...
4
votes
1answer
4k views

Serving application HTTP/5xx error pages via Varnish

I an working on running a few Rails applications through Varnish to provide better caching support which will hopefully be more flexible then the build in page-cache options in rails. One issue I ...
3
votes
3answers
3k views

Ignoring GET parameters in Varnish VCL

Okay: I've got a site set up which has some APIs we expose to developers, which are in the format /api/item.xml?type_ids=34,35,37&region_ids=1000002,1000003&key=SOMERANDOMALPHANUM In this ...