A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [varnish]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
15 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
17 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
5 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....
0
votes
0answers
30 views

Varnish is caching form keys

I'm having a facing problem while saving product the error is :- Invalid Form Key. Please refresh the page. It doesn't happen everytime, only happen when it's a product full of options. After a ...
1
vote
1answer
41 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
36 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
24 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
12 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
39 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
48 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
189 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
2answers
145 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
16 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
106 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
51 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
47 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
17 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
27 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
1answer
36 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
25 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
27 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'...
4
votes
2answers
125 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
61 views

Magento 2.2/2.3 and varnish 6

Has Magento 2 supported varnish 6? Have anyone tried this?
1
vote
0answers
66 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
28 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
53 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
100 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
15 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
1answer
42 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
63 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
40 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
40 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
36 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
70 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
130 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 ...
0
votes
1answer
33 views

Magento 2 - Admin Breaks Frequently if we do not clear the cache for longer time

I am getting a very strange issue on my live site. If we do not clear the cache for longer time such as 2 to 3 days, any admin page gets broken. After clearing the cache it resolves issue but it is ...
1
vote
0answers
106 views

Magento 2 Varnish config

I am trying to get Magento 2, Varnish (in Plesk Docker) and Nginx to work with SSL but I just get Error 503 My nginx.conf #ATTENTION! # #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED ...
0
votes
2answers
37 views

Recently viewed section is cached and not updated

I have added the /etc/widget.xml, to call the recently viewed in Footer container. The recently viewed block is display but it's applied with cache so the newly viewed products are not updated. The ...
1
vote
0answers
219 views

Magento 2.X: HTML files blocked by CORS if using Cloudfront and no Varnish hit

I have Magento 2.3.2 with nginx backend, SSL only, and proxypass to Varnish. I have configured 2 distributions in my cloudfront CDN to serve media and static files. To handle the CORS issues I have ...
0
votes
1answer
50 views

Magento2 Varnish configurations for mobile

I am using varnish with magento2. however by default VCL doesn’t include device detection and assumes that websites are responsive so that the mobile and desktop browser would be served the same page....
0
votes
1answer
77 views

Varnish: Saving product clears all product pages

When I programmatically update a product, all cached products (varnish) seem to be cleared. This is the header from the purge request: ReqHeader X-Magento-Tags-Pattern: ((^|,)cat_p_3478(,|$))|((...
0
votes
1answer
53 views

Apache Nginx Varnish listening port Magento 2

Centos 6 Already using Apache + Nginx on my Magento 1 sites on a dedicated server For a Magento 2.2 site I want to run varnish However after installing varnish - i saw in the instructions need to ...
0
votes
1answer
29 views

Varnish Latest Version Centos 6.1 Magento 2.2

Please can someone clarify this for me I'm very confused. I want to install Varnish for Magento 2.2 Store - Linux CENTOS 6.10 [server] v80.0.22 Im using these instructions to install For CentOS ...
1
vote
1answer
321 views

Magento 2.3.1 varnish and cloudlfare - pages not caching as expected

We have a Magento 2.3.1 store that uses CloudFlare and has Varnish enabled. If we use wget or curl to load a page, that page is cached in Varnish if we try wget or curl again on that same page. ...
0
votes
1answer
154 views

Varnish with NGINX SSL proxy 502 error Magento 2

I am trying to setup an nginx backend with Varnish and magento 2.3.2. To do that the flow would be: Port 80 is forwaded to 443. 443 proxypass to Varnish Listener on 8080. Here is the nginx config for ...
0
votes
2answers
56 views

Questions about Varnish and magento 2

Is it true that varnish doesn't work with HTTPS? Is there an alternative that works well with magento 2? For two reasons, one I don't think it works with HTTPS, and two it's causing me too much ...
3
votes
0answers
27 views

Cache life time with varnish

Magento Magento\Framework\View\Element\AbstractBlock has method getCacheFiletime, it return lifetime of cache in seconds. How it will work with varnish?
0
votes
1answer
41 views

Magento 2 + Varnish + Apache + Nginx SSL - Nginx.conf error

Have just had a developer implement Varnish cache with SSL termination. http:s// --> nginx(443) --> varnish(port 8081) --> apache(8080) All pages on our site are working fine except the home page ...
1
vote
1answer
203 views

Magento 2 + Varnish + Nginx + SSL get real IP

I'm having a setup for Magento 2 with Nginx + Varnish + SSL in ubuntu server 18.04. Now with my setup, I only get all logs in Nginx and inside Magento admin coming from same localhost IP which Varnish ...
0
votes
0answers
13 views

Plugin supporting Magento 2.0-2.2 is being reviewed for non-supporting php versions?

I have been trying to publish a plugin which is intended to support Magento versions 2.0 - 2.2 and was submitted to technical review. As per my understanding, Magento 2.0-2.2 supports following php ...