Varnish cache is a reverse http proxy that caches, i.e. a web accelerator. It is open source software used to speed up websites.

learn more… | top users | synonyms

0
votes
0answers
6 views

Varnish ESI must take difference src path?

One page with 5 esi:include, each src is one same path with different params like 'm.htm?p=1' & 'm.htm?p=2', but I used varnishlog and see only 1 esi request happended, so don't I use one same ...
0
votes
1answer
8 views

Varnish always cache when certain cookie is present

I want a rule in my vcl_recv that checks if a certain cookie is present, and if so always serves a cached file (let's call this cookie VARNISH_USE_CACHE) However, I also have a rule that runs after ...
0
votes
1answer
24 views

cache-control not working in chrome and varnish also not respecting cache-control

My expressjs app is running in appfog. and the I put a simple date stamp to check the time in the route and the header for cache-control and expires is set for 300 seconds. neither the chrome nor ...
0
votes
1answer
62 views

Varnish High DB Connections In High Traffic

We're operating an API that at times comes under very heavy traffic at certain periods. Under normal circumstances using varnishstat we can see 0 backend connections are required. We interpret this as ...
1
vote
1answer
23 views

How to select a varnish backend with inline-c

Depending on the request uri I want to forward the requests with varnish to different servers using data from a mysql database. The database contains 2 fields: name and base_url. If the request goes ...
-1
votes
1answer
14 views

Redirect all png requests as jpg requests in Varnish

I want to redirect all .png requests to .jpg requests in Varnish VCL Example: http://example.com/images/boy.png (or .PNG) to http://example.com/images/boy.jpg in Varnish VCL
0
votes
1answer
25 views

How to get HTML5 and Maxmind gelocation features working with varnish?

I recently installed varnish on my servers in order to ease the workload a bit. However one of my websites extensively uses the HTML5 'navigator.geolocation.getCurrentPosition()' function and also ...
1
vote
3answers
49 views

Getting 503 as Http response in android?

Please check my logcat.This is what I get when I parse the http response. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
0
votes
1answer
34 views

Basic Varnish Configuration

I'm in the baby step stages of setting up Varnish for the first time and I think I must have some fundamental misunderstanding. For the purpose of testing, I've left /etc/default/varnish in its ...
0
votes
3answers
289 views

Wordpress nginx preview post is 404 not found, but old posts are working

I recently moved my wordpress site from one host to another. Previously i used Apache to run wordpress, but later on configured with nginx by following this tutorial How to Install Wordpress with ...
0
votes
2answers
23 views

How can I selectively strip/allow cookies with Varnish?

I have Varnish set up to strip all cookies thus: sub vcl_fetch { unset beresp.http.Set-Cookie; #etc } However, I want to set a cookie called first_visit that I don't want Varnish to strip. ...
0
votes
1answer
54 views

Varnish Cache empties cart in Magento

We are running a Amazon Web Service EC2 Magento instance with RDS and Varnish Cache and nginx. We are currently facing the problem, that the cart is empty when a user tries to add a second item to the ...
0
votes
1answer
25 views

Can anyone help me with installation of varnish vagent2

I want to install this varnish vagent2 https://github.com/varnish/vagent2 I am working around it but it is not installing.. it is giving me following error.. root@ns5 ...
0
votes
0answers
12 views

magento prevent a block from caching in varnish

I am using turpentine-varnish I want to prevent a custom block from caching. i.e I want to add the below the below mentioned block to turpentine_esi.xml. <reference name="footer"> <block ...
0
votes
1answer
20 views

Varnish portable vlc script

In Varnish there are some differences between VCL 2.x and 3.0. Hash generation for example. In Varnish 2.x you'd do req.hash += somevar while in Varnish 3.x you would call hash_data(somevar). Is it ...
0
votes
0answers
55 views

Magento not hitting Varnish cache

I have setup a Magento installation with Nginx behind a Varnish cache server and I'm using this extension. However, I never get a hit on cache: HTTP/1.1 200 OK Server: nginx/1.1.19 Content-Type: ...
0
votes
0answers
64 views

Can i get Ajax delivered content cached in Varnish?

So i'm desperatly trying to get Varnish to cache my php app in full. It's a heavy app, each page load takes 2 - 4 seconds because it makes multiple CURL requests to populate the content of the page. ...
0
votes
0answers
47 views

VPS with Varnish and Magento: phisical limits?

i have 2 vps configured with Varnish port 80 --> nginx 8080 --> php5-fpm --> Magento 1.7.0.2. As varnish module, i'm using Turpentine Varnish, wonderful module. Those 2 vps are hosted on same server ...
0
votes
2answers
95 views

Using Varnish with SaaS HTTPS backend servers?

I want to configure Varnish to use HTTPS(!) services as backend services. The key here is the SSL part of the connection to the backend service! I have limited control over those HTTPS backend ...
0
votes
1answer
95 views

Varnish VCL: How to NOT cache 500 Internal Server Errors

I can't figure out, for the life of me, how to get varnish to ignore caching of 500 internal server errors. Basically, if someone hits varnish and is returned a 500 internal server error, I want ...
0
votes
1answer
34 views

PURGING objects on multiple instances of varnish

I am using a Load Balancer (LB) in front of Varnish instances. Just say the LB is listening on Port: 80 and there are multiple instances of Varnish on different port nos. i.e. I have a single LB ...
0
votes
0answers
45 views

Varnish does not cache when cookies are enabled

I use Varnish 3 and site is on wordpress. The problem is that varnish caches well when I remove all cookies and set-cookie headers. But I need to make varnish to cache pages depending on cookie. (My ...
0
votes
1answer
25 views

Varnish: having trouble getting basic caching to work as expected

I'm learning Varnish, and I am having trouble understanding some very basics. I have created a simple file i want Varnish to store in cache, called test.php and it looks like this: <?php ...
0
votes
1answer
26 views

How to use varnish to wait for backend brief deployment delay?

Here is the situation, Jenkins auto deploys the war to qat glassfish server During deployment, usually several seconds, how can I instruct varnish to put all in coming requests on hold? Currently ...
2
votes
1answer
56 views

Internal Routing for Caching in Symfony2

I am using internal routing in my project and use the output urls for caching (Varnish). Code : _internal: resource: "@FrameworkBundle/Resources/config/routing/internal.xml" prefix: ...
0
votes
0answers
33 views

Magento Varnish Cache save()

We use Varnish Phoenix PageCache extension in our Magento webshop. Every night we are importing products with an self developed import, using $product->save() after setting attributes we get through ...
2
votes
0answers
30 views

Unable to purge using CURL on VARNISH

I am unable to purge objects in varnish using CURL CURL command: curl -X PURGE localhost/public/stylesheets/main.css -v the curl command is returning 200 OK response. the object is not getting ...
0
votes
1answer
51 views

missing secret file after install varnish3 by homebrew on mac

everyone I install varnish3 on mac 10.8.3 by homebrew, and it works. but i try to find secret file for varnish, can't find it at /usr/local/etc/varnish and /usr/local/Cellar/varnish/3.0.3/. who can ...
0
votes
1answer
47 views

Varnish Restart Trace

Our Varnish Instance /usr/sbin/varnishd -P /var/run/varnish.pid -a :6081 -f /etc/varnish/cm-varnish.vcl -T 127.0.0.1:6082 -t 1h -u varnish -g varnish -S /etc/varnish/secret -s malloc,24G -p ...
2
votes
0answers
59 views

Randomly missing ESI content on tablet and mobile devices using Symfony2 and varnish

I have a weird issue where some content included via Edge Side Include is randomly missing. Its a menu wrapped in a header tag. Sometimes it displays in the browser sometimes its missing. A few ...
1
vote
1answer
56 views

Why isn't varnish taking into account the malloc limit?

I have varnish running with -s malloc,25G, but the process keeps growing until it consumes all the server memory and it crashes, restarting the cache. Any idea what I can check to see what's wrong? ...
0
votes
0answers
17 views

How can I configure Varnish to cache range requests?

I'm trying to configure Varnish to cache range requests. I notice the http_range_support option, but everything I've read says that this will attempt to cache the entire file before satisfying the ...
0
votes
1answer
90 views

Nginx and Varnish only serving up welcome page

I've installed and configured Nginx and varnish on a new Ubuntu 12.04 server. After upgrading Nginx to 1.4.1, I had to update some configuration settings. Now I am only seeing the Nginx "Welcome to ...
0
votes
1answer
120 views

Change Listen Port on httpd config for Varnish Configuration

I installed Varnish Cache my CentOS server.I try the do configuration correctly but as I read many document say to me change apache port Listen 80 to Listen 8080. But I couldn't find any Listen 80 ...
0
votes
1answer
26 views

varnish not kicking in for www-version of domain

I have setup varnish on a server that runs two sites on two different domains, varnish works perfect without www in front of the two domains, I have attached the vcl file in this pastebin, I guess ...
0
votes
0answers
58 views

WordPress plugin for setting varnish minimum cache TTL?

Title says it all. Is there a plugin I can use to change the minimum time objects live in varnish? I have many WordPress sites running on my server and would like to set different lifetimes for the ...
1
vote
1answer
52 views

Suggestions for extremely aggressive HTTP caching for REST resources

I have a setup where I would like to have extremely aggressive HTTP caching on my internal proxy. Basically, what I want to achieve is a simplistic caching strategy like this: any GET request that ...
0
votes
1answer
68 views

Regex to match host request

Given this VCL code in Varnish 3.0.2: sub vcl_recv { if (req.http.host !~ "^(?i)(www|m|mobile)\.example\.com$" || req.http.host !~ "^(?i)example\.com$") { error 403 "Forbidden"; } ...
3
votes
2answers
104 views

Magento Multi laguage store with varnish

How Multi-Language Magento store work with Varnish. Is there any configuration available in varnish,so we can create cache base on cookies?
0
votes
1answer
51 views

Varnish cache for mobile

I am using Varnish cache with the following to check for a mobile/tablet device: sub device_detection { set req.http.X-Device = "pc"; if(req.http.User-Agent ~ "iP(hone|od)" || ...
0
votes
0answers
109 views

How to install Apachebooster (varnish) with Apache 2.4

When you do a reverse proxy in which Nginx/varnish/ApacheBooster will be the one who listen the traffic and forward anything needs to be process through PHP to Apach Need to install Apachebooster on ...
0
votes
1answer
57 views

Varnish S3-like, signed, time-limited request before delivering objects, in VCL

This question may seem a bit odd, but is it possible, with a poor-mans solution in VCL, to parse a signed request (with a shared secret key, aka poor-mans solution of HMAC), created by the referrer ...
0
votes
1answer
77 views

ruby on rails application managing cookies with varnish cache

I want to implement varnish with my newly deployed rails web application. Rails version 3.2.12 with Ruby 1.9.2p318 (2012-02-14 revision 34678) [i686-linux] In my application user ...
0
votes
0answers
90 views

WordPress site isn't caching pages with Varnish

I've got a WordPress site set up with a varnish server in front. The is returning the following HTTP response headers for every page: Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, ...
1
vote
1answer
161 views

Regular Expression in Varnish? What does this regex matches?

I see in my log a purge request going to varnish of the form req.url ~ "^(.*)(?<!\\d{1})534328(?!\\d{1})". I am not sure what the regex matches exactly. I know varnish uses POSIX regular ...
0
votes
1answer
83 views

Varnish: How to send hit/miss stats to backend

I hope you can help I have a image server that generates images on the fly. I'm using varnish to cache generated images. I need to record how many requests (per image) varnish receives as well as if ...
0
votes
0answers
109 views

How to optimize the single webserver for Magento CE with all cache mechanisms

I am trying to optimize my webserver for Magento CE 1.7. My task is to use all possible techniques available at this moment to speed up page load. Below I wanted to share my thoughts with you and ask ...
1
vote
3answers
301 views

How can I get Varnish to hit on requests of static files on Cloudcontrol?

I'm serving static files (images, javascript, css files) from a (hopefully) cookieless domain also mapped to my cloudcontrol deployment. Here are the request and reponse headers. I see no cookie ...
0
votes
1answer
82 views

15 million static files shared via NFS

Had a proposed solution from a co-worker to setup a caching layer for files that never (almost never) get updated. Currently the Ruby application has to fetch content from DB, render a page and serve ...
1
vote
1answer
133 views

How to Deal with Cookies in Varnish stack

Due to slow performance of the site, I started looking info Varnish as a caching solution and have some questions about Google Analytics. When there are 5K active users on the site (according to ...

1 2 3 4 5 10