Questions tagged [varnish]

Denotes questions related to setup & configuration of Varnish and VCL files

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

How to setup and configure perfect webserver on centos for magento2

I want to Build a new AWS EC2 centos webserver with the best configuration for Magento2 ? there is any clear steps or script? Regards, Ahmed
0
votes
0answers
11 views

What is the correct way of flushing cache by TAG programmatically? (including Varnish)

I've been looking for a correct way of flushing cache by tag programmatically and have found 2 different solutions when it comes to CMS Pages: Using the CacheInterface as described here, which ...
0
votes
1answer
31 views

Varnish is cached but Google Chrome showing not cached?

I have installed Varnish and configured it as per as the guideline. And when I try it curl -I https://d-o-m-a-i-n.com I get following which seems its working correctly. HTTP/1.1 200 OK Date: Sat, 28 ...
0
votes
0answers
20 views

Magento 2, Varnish and logged in users

Using Magento 2 and Varnish 5, varnish works perfectly if you aren't logged in. But when logged in as a normal customer you get an 80%-90% varnish miss rate. Is there any way to use data cached in ...
0
votes
0answers
13 views

Varnish cache test error on extension upload

I have created a custom module for filter some product collection. When I try to upload this extension to Magento marketplace. I pass the reviews Marketing Review, Code Sniffer and Copy Paste ...
1
vote
1answer
94 views

Magento 2 varnish Checkout to cart Redirect Problem

Preconditions 1.Magento 2.3.4 2.Must Varnish Enable Steps to reproduce 1)Do not add any product to the cart. 2)Directly go to https://www.sample.domain/checkout/ 3)Because No product in cart ...
0
votes
4answers
112 views

Magento 2.3.4 + Varnish 6

I am having a problem with Magento open source 2.3.4 and its configuration to work with varnish 6. I have followed the devdocs about setting up varnish caching. I have verified that the varnish part ...
0
votes
1answer
15 views

Should you modify the VCL file when activating deflate Gzip on the server?

When I activate Gzip I find that my site is slow, as if Varnish was not doing its job.
0
votes
1answer
21 views

When using WebP and Varnish, should WebP be added to line 82 of the VCL file?

varnish.vcl : ... # Compression filter. See https://www.varnish-cache.org trac/wikiFAQCompression if (req.http.Accept-Encoding) { Line 82 ---- > if (req.url ~ "\.(jpg|jpeg|png|...
1
vote
2answers
37 views

References of pub in Magento 2 VCL

Are we supposed to remove reference of pub from line 67,102,206 of VCL like we remove from line 13 if the Magento root directory is pub? https://github.com/magento/magento2/commit/...
0
votes
1answer
63 views

Magento 2.3.3 - Varnish session issue

I'm having a bug with the Varnish Caching and after investigating and searching for a solution, I'm still not able to solve the problem. The FPC is working fine most of the times, but sometimes the ...
0
votes
1answer
98 views

Purge specific Link from Magento 2 Varnish

I am trying from console to purge and refresh one specific link of my magento 2 store in Varnish. I don't want to clear the whole cache but just one link. I tried: curl -X PURGE http://www.example....
0
votes
0answers
48 views

Magento2 with Varnish 6 and Cloudflare SSL termination

I have magento2 with varnish 6 setup on docker with SSL termination on CloudFlare which have cahce on its own. I want to know proper configuration of settings for: 1. Varnish - should I enable static ...
0
votes
0answers
13 views

What could cause Magento 2 FPC to get invalidated?

Without any backend operations I am seeing product and category pages getting invalidated within 24 hours. Store uses Varnish for page cache and Redis for session.
0
votes
1answer
71 views

Ajax pagination issue with Varnish

Store has Magento 2.3.3 with Varnish 6, Redis 5 and Amasty Layered navigation enabled for filtering and pagination ajax calls. After setting up above configuration, navigation through category pages. ...
0
votes
1answer
36 views

Magento 2.3.3 invalid form key frontend

Last days I have this strange issue in my Magento instance. When you are in front end catalog category page and press store view link, Magento changes to the right store view but you get message ...
0
votes
1answer
34 views

Magento 2 Varnish cache compilation failed

I configuring the Varnish cache in Magento 2.3(CE), for that I've gone through the below link. https://www.emiprotechnologies.com/technical_notes/magento-technical-notes-60/post/magento2-install-and-...
0
votes
0answers
20 views

Magento 2 | Varnish cache pages per session [duplicate]

We have a magento 2.2.6 shop, with 20k products. We use varnish for fpc. It is configured properly, and we can verify by visiting a page two times. The second time the ttf is really low. Problem is ...
0
votes
0answers
6 views

Cpanel default_https.conf overwrite with Nginx SSL termination Varnish

I have had a developer implement varnish with SSL termination on our cpanel server. Everything works fine except every so often our default_https.conf file keeps getting overwritten in /etc/nginx/conf....
1
vote
1answer
121 views

How to set page cache expires to 7 days?

I am using varnish with default magento 2.3.3 VCL and the default nginx configuration that comes with magento install. At present I see the expires is set to -1. How can I set expires to one week?
1
vote
0answers
44 views

Is the .probe line essential in a VCL file?

To make Varnish work, I need to remove this part: .probe = { .url = "/pub/health_check.php"; .timeout = 2s; .interval = 5s; .window = 10; .threshold = 5; } If I leave it, there ...
0
votes
1answer
40 views

Redirect of web setup wizard - varnish

After installing varnish, I am unable to get to Web Setup Wizard. The browser spins for a while and then I end up on https://example.com:81/setup with an error that Chrome interprets as: took too long ...
0
votes
0answers
15 views

Longer Varnish TTL for public content?

Are there any disadvantages in settings longer TTL for public content? Default is 86400. What are the disadvantages if it is set to 1 month?
0
votes
0answers
67 views

Magento 2.3 Varnish 503 Backend fetch failed

varnish server gives back error message: Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 131307 varnish log info: Varnish cache server # varnishlog -q 'RespStatus == ...
0
votes
0answers
64 views

Magento Progressive Web App (PWA) - how to integrate Varnish Cache?

Same as above question "How to integrate Varnish cache into PWA ?" Please give me any solutions or suggestions :))Thanks everybody for reading!
0
votes
3answers
205 views

Magento 2 Header Sign In Sign Out Issue

I have ultimo theme on magento 2.3.3 with redis and varnish. After Sign Out the link still displays Sign Out and vice versa. Becomes normal after cache is flushed. looks like cache issue. Any help ...
4
votes
3answers
294 views

Is it worth paying for Litespeed + LiteMage Cache on a Magento 2 site, or can I do just as well with Varnish, Turpentine, Redis, etc.?

I am in the process of setting up a new Magento 2.3 store with Apache, Varnish (probably Turpentine) and Redis. All requests will be via HTTPS (SSL). I recently became aware of the Litespeed Web ...
1
vote
0answers
18 views

Magento On First Load Some ESI Blocks Slow

Hi we are using Magento 1.9 with Turpentine Varnish. When varnish serves non cached pages some ESI blocks load very slow. Is there any way to diagnose and fix this issue? One of the suspected ESI ...
1
vote
1answer
287 views

Magento 2.3.3 Varnish problems. Magento's VCL file is not working

I have managed to set up Varnish for magento 2 using nginx to handle SSL. However if I try to use the vcl file provided by magento varnish stops working with the usual "Error 503 Backend fetch ...
0
votes
1answer
123 views

Confused about Apache and Varnish Ports when redirecting HTTP to HTTPS with Magento 2

Our setup is a Magento 2.3.3 store running on a dedicated (not shared) Linux host. We have full root access and can edit all files as needed. The httpd server is Apache 2.4. Varnish is ver 6.3. ...
0
votes
0answers
85 views

M2 (2.3.3) + nginx + varnish issue

I have set up M2 (2.3.3), nginx, redis and varnish. However, varnish is not doing any caching as confirmed from header. I can access both frontend and backend. varnish.service - Varnish HTTP ...
1
vote
1answer
18 views

Show Varnish 'Age:' in production mode

Is it possible to show the varnish 'Age:' header in production mode. I want to be able to monitor how long our pages are staying in Varnish cache for. This header is only visible in developer mode ...
1
vote
1answer
33 views

Varnish is running but don't see varnish in the response header

I have set up Varnish and confirm it's running in the server. In the frontend browser response header shows this: Accept-Ranges: bytes Age: 46 Cache-Control: no-store, no-cache, must-revalidate, max-...
2
votes
2answers
59 views

Varnish cache is purged on every order

Each time I place an order in my Magento 2.3.3 installation all category pages are purged. I found these messages in the debug.log but I can't find what is causing this. Or could this be the default ...
0
votes
1answer
27 views

Assigning different BASE_URL for developer mode only

I that possible? I want to do this to set up a configuration like this: https://mystore.mydomain.com/ for production (with Varnish cache) https://mystore.mydomain.com:5001/ for development (...
1
vote
1answer
38 views

How does Varnish storage data?

I'm integrating Varnish for my site Magento ver 2.3 with the web server using Nginx. During learning varnish, I encountered some problems: When a request is sent to the server, where is the Varnish'...
5
votes
2answers
362 views

What is the purpose of http_cache_hosts entry in app/etc/env.php

I have configured Varnish cache in local Magento 2 environment and It is working fine. I have added below lines in app/etc/env.php file. 'http_cache_hosts' => [ [ 'host' => '127.0....
0
votes
2answers
98 views

Magento 2.2/2.3 and varnish 6

Has Magento 2 supported varnish 6? Have anyone tried this?
1
vote
0answers
156 views

Magento 2.3 - Intergration varnish cache with, error socket :80: address already use

When I check status Varnish, always receive error : Error: Could not reopen listen socket :80: Address already in use. But, run command sudo netstat -nlpt, don't have process using port :80 ??? ...
0
votes
1answer
36 views

Magento2 + modal confirmation popup after page load

I want to open modal confirmation dialogue and based on that I'm operating some database operation as my need. So please suggest me the best way to open modal confirmation popup that should work even ...
2
votes
0answers
78 views

Magento 2 Varnish & Cookies

I have noticed when browsing our website with cache and cookies clear we get Varnish Cache HITS on every page (with cache warm). Once you add an item to cart then browse back to the same pages we get ...
2
votes
2answers
194 views

Magento 2.3.3 Varnish Cache invalidating and auto purging every 10 minutes

I have just implemented Varnish 6.0 on our Magento 2.3.3 install, everything seems to be working fine except our Magento cache/varnish cache is being flushed by Magento every 10 minutes. I can see ...
0
votes
0answers
18 views

Can't see Magento 2 front nor admin page on excluded IP when in maintenance mode. Using Varnish

So as I said, I am trying to see my website while others see it in maintenance. BTW I have Varnish configured. What I did: magento maintenance:enable --ip=<my-ip-address> What hapened: At ...
0
votes
2answers
57 views

Magento2 - Why Varnish is better the Full Page caching in Magento2

Magento2 officially recommend to use Varnish on production as it's much faster than the built-in cache, but they don't describe why it's better than the Full Page cache and what are the missing ...
0
votes
0answers
110 views

Magento, Varnish, Nginx : CSS, JS failing to load with incorrect mime-type issue

I am running magento 2.2.6 on a nginx server. I have Varnish installed on another dedicated server. When I use it via proxy-pass and contact varnish server first, I am able to load the magento website,...
0
votes
2answers
47 views

Varnish full_page cache can't clear

I've recently set my site up with Varnish full_page cache, and I have one specific URL that seems to be "stuck" and I am not able to clear it from the cache. Last night I went into maintenance mode ...
0
votes
1answer
47 views

magento 2 and varnish 5.2

I installed varnish 5.2 and Magento 2.3.2 after that I check the varnish header and it worked very well but after move default.vlc it does not work. this is my default.vlc https://pastebin.com/...
0
votes
2answers
46 views

how to install varnish cache in magento2 using localhost

How to install the varnish cache in magento2. I need setup the varnish cache in my system localhost. can anyone please guide me.
1
vote
0answers
121 views

Magento 2 multistore view switcher not working with multiple domains

When switching to another store view in the Magento front end, Magento responds only by redirecting back to the main store view domainstoreview1.tld/en_GB. The site worked ok with all the store views ...
0
votes
0answers
213 views

Magento 2.3.2 product save very slow with Varnish cache enabled

I have a very fast Magento 2 backend, I have configured Varnish caching. When I save any product, it takes about 20 seconds to save while loading the product edit page goes very fast. Saving category ...

1
2 3 4 5 6