How do I do HTTP Purge from Java?

I'm trying to perform a PURGE with HttpUrlConnection like this: private void callVarnish(URL url) { HttpURLConnection conn = null; try { conn = (HttpURLConnection)...

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 request does not purge hash_data() URL

In vcl_hash, I have backend default { .host = "127.0.0.1"; .port = "8080"; } acl purge { "localhost"; } sub vcl_hash { if(req.http.Cookie ~ "isLogin") { ...

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...

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...

Varnish: Backend fetch failed while using Nginx + Docker

I am a little lost as I'm experiencing a 503-error with Varnish, whilst using it in a docker-compose container. varnishlog returns this: varnish_1 | * << BeReq >> 3 varnish_1 | - Begin ...

Varnish+Nginx+Magento cannot serve same page multiple times, resp 502

I have been on the administrative side of a small Magento 2 developers team. They have been setting all their Magento 1 installations behind nginx and php-fpm7.1 I got huge troubles debugging...

Varnish object expires too soon. Log expiring objects, or show reason for expires?

I have issue with a wordpress website and it's cache module Varnish 4.0 I can achieve about 90% hit rate, but it still overloads my database on the backend. Investigating the issue with Varnish it...

Varnish 5, serve cache objects if backend is down

I'm using varnish 5.2.1. I have configured VCL for grace mode. If TTL expire, object enter in grace mode if backend is down. It's ok. But, this not work if I ban or purge object. If I purge or...

Install Magento 2 and Varnish Cache on different server

I have 2 servers, one which has magento 2 installed (ip - 129.89.188.244 port 80) and Varnish on another (ip - 129.89.188.245 port 80) My Varnish Configuration: File...

Magento 2 : Varnish Cache based on user agents

I have a site with Magento 2.2.2 Varnish enabled Based on php snippet code which detects device based on user agents,i am printing "IN Desktop" in desktop & "In mobile" in mobile device. But once...

Cache content of Ajax Get call in varnish 5.2

I am new in varnish and using Varnish 5.2 and want to know why Varnish do not cache AJAX Get request while it does cache the content if same Ajax call is requested through a URL call from...

Varnish panic - Log abandoned (vsl)

Trying to set up varnish but I'm getting a lot of panic state from it, and can't figure out why and how to fix it. OS : Debian 9 Varnish version : tried with 5.1, 6 & weekly , same behavior Here...

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...

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...

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...

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 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...