Regex Syntax changes between POSIX and PCRE

We are currently in the process of upgrading our Varnish Cache servers. As part of the process, we upgraded only one of them to see how it behaves compared to the older versions. Some of the major...

Syncing multiple Varnish Cache servers

We have two servers, web1 and web2, each running Apache and Varnish. They are load balanced, with a persistence of 30 mins. In our testing, we've found some cases were pages are cached on one...

How to check if user isSignedIn in Liferay, outside portlet and theme context?

We try to add a feature to a Liferay site, so the signed in users get the ability to purge the current page from the varnish cache with one simple click. So we add add the button in the...

Multiple url purging Varnish issue

I have an issue with varnish purging : Our application is very dynamic . So an event on Object A , will generate 10.000 Purges because Object A infos are present in all pages. Object A is stats...

Varnish: Purge says it works but doesn't remove old content

I'm running a stand alone instance of varnish on a Digital Ocean Ubuntu VM which basically works fine. The setup is used to take load of an older wordpress server that sits anyhwere else. That...

Varnish VCL simply replace client.ip for req.http.x-forwarded-for

In my Varnish 2 setup I have a purging/banning block like so: acl purge { "localhost"; "x.x.x.x"/24; } sub vcl_recv { if (req.request == "PURGE") { if (!client.ip ~ purge) { ...

New changes that I make are not displayed on live site (probably caching)

website is live since yesterday, I when I upload website on hosting server and I created .htaccess file for ExpiresByType purpose, and it turned out that it was a mistake because I guess that is...

How to proxy NGINX, Varnish, and PHP-FPM over SSL

Trying to figure out how to host a WordPress site with NGINX and PHP-FPM, but also add Varnish for caching; and, to make it worse, have this offered over SSL. I've worked with NGINX, Varnish, and...

How to purge Varnish cache when using Cloudflare?

Its seems that purging doesn't work when using Cloudflare(Cloudflare returns 403 Forbidden). This what i got when i searched for a solution online: "The problem is that when you are using...

Varnish Wordpress SSL Apache

i'm using wordpress, and i need web page accelerator. I have SSL and i've decided to install Varnish. Configurations looks like that Request -> Apache (:443) -> Varnish (:80) -> Apache...

jQuery Datepicker no longer works after mod pagespeed

I'm using mod-pagespeed on my apache server. I now encountered a problem where my jQuery datepicker no longer works after activating mod pagespeed. I can easily fix it by creating a...

Magento 2 Varnish caching per instance

I have a Magento v2.2.6 webshop running and I want Varnish on that. Now I installed Varnish and it seems to be active. But I have a (big) problem. How Varnish should work is that it caches pages...

Can't get real-ip from nginx/varnish to pass on, always shows 127.0.0.1

I would like to have the real-IP shows up in the server/magento but it keeps falling back to 127.0.0.1 The server is setup as follow: Varnish listen on port 80 Nginx listen on port 8080 The SSL...

How do I merge these two varnish backends?

I am using thumbor and s3. I want to use varnish infront of them. I know how to do place varnish in each of them but I can't combine the two varnish setup for thumbor vcl 4.0; import...

Varnish Request Url was not the same with apache request

I am sending a request to Varnish but the request was changed so that the output is wrong original...

A way to quickly purge very large list of URLs from Varnish

My Varnish server caches a maps tile server, which is updated real-time from OpenStreetMap every 1 minute. Frequently, an entire area of the map needs to be invalidated -- i.e. 10,000 or even...

Varnish: Take image from browser cache if image is still up to date in varnish cache and not updated in app

I want an object (image) to be cached in browser. But before delivering it shall be checked if the object in varnish cache is still up to date. What do I have to configure in the varnish vcl...

Varnish not respecting pass to backend for specified http hosts

Running Varnish 6.0.6 in a Docker container for several Wordpress sites. I have several domains that I would like to pass to the backend verse having them cached, but the configuration is not...

Magento 2 varnish not caching, delivers new cookie each time

I'm trying to get Varnish to cache a magento store but it keeps setting different cookies each time I curl it: $ curl -IL -X GET https://myurl.com/ |grep cookie set-cookie: store=default;...

Magento 2 + WHM + SSL + Varnish configuration issues

I am trying to configure the Magento 2 with varnish 4. I have WHM and Cpanel. I have installed and configure varnish on WHM successfully but it's working with request made as HTTP not https. I...

Multiple domains with Nginx, Varnish and Django all return the same cached page

I am trying to configure a second domain for an existing project which was previously just using one. But Varnish always returns the cached page from the first domain. So when I visit the second...

Varnish (?) interrupting file download

On a debian buster server I have an apache2 web server with varnish as a cache in front of it, actually varnish listens on port 80 and fetches from apache which listens on port 8080. Maybe since...

Varnish Conflicts With Let's Encrypt Certificate Renewal

I have a woocommerce site that runs on Ubuntu. I'm unable to renew the let's encrypt certificate because port 80 is occupied by varnish, instead of Apache 2 server. Any attempt to put Apache...

Magento 2 with Varnish and Nginx as SSL termination - backend server is serving

I am setting up a Magento server with Nginx SSL termination and varnish nginx and varnish 5.1 are installed in dedicated host 192.168.1.251 (ubuntu) & Magento on 192.168.1.250 (ubuntu) nginx 1.6...

How to solve Varnish purger that times out after 1000 milliseconds with 0 out of 0 bytes received with cURL error 28

Caching with Varnish (5.2) is working fine, but when changing something on a site, the cache does not get refreshed and stale content keeps being shown. I can see that there is a purge queue, but...

Varnish MISS on some URL's, but HITS on other

We are using Magento 2 with Varnish cache We only get Varnish Cache HIT on very few /catalogsearch/result/ pages, and we really can not figure out why we don't get cache HIT on all...

Can't PURGE entire domain in Varnish, but can PURGE individual pages, do I have a misconfiguration?

I'm assuming that I must have made a mistake in my Varnish configuration. (I'm running version 6.0.7.) Here is the relevant section: ####----SECTION THREE: PURGE RULES----#### # Access Control...

Varnish 301 redirecting loop Wordpress website

Every few hours Varnish caching 301 redirection loop to domain of site itself, its happen only to one of my wordpress sites. The problem began from the wordpress plugin JF3_Maint_Redirect, by...

Varnish 6 LTS /w CentOS 8 not respecting memory limits?

I hope I find you allright. So, I had Varnish 6.x LTS on Centos 7 on a server with 64Gb of RAM, practically working perfectly as configured, and I updgraded my setup to a server with 128Gb of RAM...

Varnish not keeping cache

My varnish cache will only keep items cached for a few minutes. I have changed varnish configurations to keep items cached for a week. Here is my default.vcl: # VCL version 5.0 is not supported so...