Questions tagged [varnish]

Varnish is an open source reverse HTTP proxy with extensive caching abilities, i.e. a web accelerator. It is frequently used in front of websites to cache webpages in memory.

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

2066 questions
0
votes
1 answer

Is it possible to set up for two different urls one cache page in varnish?

I have two sites with different domains and url building (one of them using subdomain in url and other convert subdomain to path) and I want to make varnish one varnish cache for this two urls? Is it possible?
Oleksandr Savchenko
  • 642
  • 3
  • 10
  • 35
0
votes
1 answer

Cannot exclude robot.txt from varnish cache

I tried to exclude robots.txt form varnish cache by using the following lines of code in default.vcl if(req.url ~ "^/robots\.txt$") { return(pass); } Now Network tab in dev tools, it shows a Age: 0 and X-Cache:MISS. But,for some reason varnish…
Janith Punna
  • 73
  • 2
  • 6
0
votes
1 answer

SEO and stripping UTM parameters with Varnish

Recently I had a problem where a client of mine sent out an email with MailChimp containing UTM (Google) and MC (Mailchimp) parameters in the URL. Since the link was pointing to a Magento 2 site with Varnish running, I had to come up with a fix for…
TommyK
  • 23
  • 5
0
votes
1 answer

Varnish not to cache urls with specific word

I am using varnish 4.0.3 as revers proxy caching and load balancer. I want to avoid varnish caching for links that start with /api/v1/ or any link that contains feed in its link and to serve the request from the backend servers directly. I have done…
Alaa
  • 4,471
  • 11
  • 50
  • 67
0
votes
1 answer

setup varnish on a debian8 with apache2

So i am testing varnish for the first time on a server my OS is debian8 and i am using Apache2 I've installed varnish with apt-get install varnish it did nothing so i tried to follow some tutorials such as…
leila
  • 461
  • 1
  • 7
  • 21
0
votes
1 answer

Show content from /page/a on url /page/b Varnish

I would like to setup Varnish 2.1.5 rules to show content from another page in some cases, yet keep the original URL intact. eg When user requests /page/a s/he will be shown /page/b instead, but still see the /page/a URL in the browser. This…
Vinnie James
  • 5,763
  • 6
  • 43
  • 52
0
votes
1 answer

Software cache benchmark

I'm trying to run some benchmark measurements by my own. The idea is to use some well known vanilla web benchmark (e.g. RUBiS, TPC-W) and their tuned version (Varnish reverse proxy in front Apache and software cache in front database). I have couple…
user449219
  • 1,333
  • 2
  • 9
  • 7
0
votes
0 answers

Can Varnish backend be specified by stand-alone app?

Currently we have 3 applications (varnish backends): Eshop CMS Routing - app which returns status code of which backend should be chosen to hit. The main idea between this is that we have the same domain for Eshop and CMS. And all links are stored…
sanis
  • 1,329
  • 1
  • 10
  • 11
0
votes
1 answer

Why Varnish stops caching 200 response after 500 error

I cant understand the behavior of Varnish in case of 500 error from backend. - Why it increments MAIN.n_object counter? I think it should cache only 20x and redirects. - If first request finished with 500 response from backend, all subsequent…
Molfar
  • 1,411
  • 3
  • 18
  • 49
0
votes
1 answer

Xvarnish (cachewall) with mod_pagespeed

There is an issue where I have a cpanel server with cachewall (Xvarnish used to be called) and mod_pagspeed installed. Cachewall/Xvarnish has https support enabled. The issue is that even though the header of the website is showing that both…
TheLipster
  • 33
  • 7
0
votes
1 answer

Tomcat's server.xml host container and Varnish

In the past I've used the host container to route the root uri to a tomcat webapp, like this: myapp myapp.mydomain.com
Jared
  • 2,454
  • 1
  • 17
  • 13
0
votes
1 answer

User Can not Login Magento Store with Varnish

I have a Magento store with Varnish server cache. the user can not log in my Magento store by IE. Its fine with other browsers, but only have the issue with IE. After a user enters correct user/password and clicks login button, its showing login…
SFH
  • 16
  • 1
0
votes
1 answer

Caching layer for different microservices

We have different microservices which makes duplicate calls to internal and external services. We need to cache these calls between services to improve latency. We are thinking of introducing an API gateway whose major aim would be caching the data…
0
votes
1 answer

call to apache from varnish before serving cached content to user

I have implemented varnish for my web pages. Now, I have one doubt can i call to Apache server before serving cached content to user in this case, request flow will be varnish -> nginx ->apache OR can i serve varnish from apache level. in this…
Nithish
  • 369
  • 1
  • 8
  • 20
0
votes
0 answers

Nginx cache : return cached response AND forward request to backend server also

I want to use nginx cache (or varnish) in front of a web server (nginx). The content of the database are modified once a day, so the response time can be significantly improved by serving a cached result. However the backend server still needs to…
user
  • 17,781
  • 20
  • 98
  • 124