Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [varnish]

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

2
votes
0answers
11 views

Enable Varnish with some non cacheble blocks?

I have configured and enabled Varnish in my webiste but it's not working. I'm getting x-magento-cache-debug: MISS in headers. My hosting company told me that configuration is correct and Varnish is ...
0
votes
0answers
10 views

Setting X-Magento Tags for custom controller

I have a custom controller for infinite scroll and filtered attributes which simply returns a json response. When modifying a category or product these cached responses are not cleared however. ...
0
votes
0answers
19 views

Want to show the Stores based on countries

I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries. For Example Saudi ...
0
votes
1answer
19 views

Magento2: How can I implement varnish cache for magento?

I want to install varnish cache for my Magento site on Centos 6 Apache2. Please share me link and its advantages.
0
votes
0answers
20 views

set-cookie response header on every request causing varnish miss

I've deployed a couple of Magento installs (2.3) on dedicated servers, with Varnish. Out of the box, everything seems to be ok, but it seems once we developers onto the installations to add themes, ...
0
votes
0answers
13 views

Varnish Cache pages being Invalidated too soon Magento 2

I have setup varnish on my server and have used this with the default vcl provided by Magento 2 on my store. This has about 16,000 main pages (category, product, CMS) and want to store this all in the ...
0
votes
0answers
41 views

How to correctly setup Varnish cache on Magento 2.3 with SSL?

I am trying to configure Varnish cache on Magento 2.3 with SSL termination, but no luck so far. Here is my configuration: /etc/apache2/ports.conf Listen 8080 <IfModule ssl_module> ...
2
votes
0answers
26 views

Magento 2 - Warm Cache Vs Cold Cache Concept (With Varnish & Redis)

I want to know the concept difference between warm cache and cold cache. How do we use both these techniques effectively with varnish and Redis cache. Any help, knowledge and experience sharing ...
1
vote
0answers
65 views

Magento 2.3 - Set vary string (X-Magento-Vary) before page content is loaded from Varnish FPC

I have different versions of the homepage depending on customer input on the page that sets a custom cookie myCookie. I created a plugin that adds this cookie value to the vary string before it is ...
0
votes
0answers
9 views

When do product changes become public after a “save” operation (with varnish)?

We use Magento2 with Varnish (2 instances). I wonder when exactly a product should update in the frontend after being created / updated / disabled / enabled / mass updated / ... especially on product ...
3
votes
2answers
82 views

Magnto 2 : varnish cache issue?

The current website running on Magento 2.2.4 CE and we have enabled varnish cache. How do we know if varnish cache is working or not in Magento 2? Please advise?
1
vote
0answers
21 views

env.php changes when enabling Varnish

app/etc/env.php has the following for cache settings: 'cache' => [ 'frontend' => [ 'default' => [ 'backend' => 'Cm_Cache_Backend_Redis', '...
2
votes
1answer
42 views

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 as ...
1
vote
0answers
13 views

CloudFront like reverse proxy instead Varnish

I know that CloudFront is CDN, not reverse proxy, but if I understand correctly now is possible to use CloudFront to serve everything behind it. I found few links, and seems like it is possible. For ...
0
votes
0answers
48 views

Varnish Cache Always Invalidate Every Second on API Update

Our Magento 2 are connected to third party API, and every time the there is API update the varnish are being purged. The problem starts when there is 2-3 API request every second, that's mean varnish ...
0
votes
1answer
64 views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
0
votes
1answer
20 views

How to dynamically change number of varnish servers with magento2?

I am wondering how I can dynamically increase and decrease the number of varnish instances for a Magento2 installation as needed - with an aws autoscaling group, for example. Configuring them from ...
0
votes
1answer
230 views

Magento 2: Facing issue in varnish configuration

I have installed the varnish on the server. Now I want to configure it with Magento 2 Please find the current values of all files below. Server IP: 4.1.173.181 Magento 2 Admin: Stores > ...
0
votes
3answers
131 views

Nginx + Varnish does not redirect domain to https

I performed the installation of magento2.2.6 with varnish and redis I am in trouble when I try to access the site through the domain (emporiobit.com.br) Error 503 error occurs Backend fetch failed ...
0
votes
3answers
124 views

Magento 2: How to set up varnish cache with out CSS and JS file

I have the varnish cache set up and working fast for me, but the only issue is i can't clean the CSS and JS cache. If and only if I restart the varnish cache. So I am looking for a solution that can ...
0
votes
3answers
53 views

Magento2 does varnish cache help to improve performance on development mode?

I am working on a Magento EE project and version is 2.1.15, and since we have lots of product on the products page, and takes 22s to reload the page, so i am wondering will varnish help to improve the ...
0
votes
1answer
112 views

X-Magento-Cache-Control Header Extra Variables

Has anyone else had the issue with 2.2.6 and Varnish 5, where extra variables are included in the header? My header retruns; X-Magento-Cache-Control: max-age=86400, public, s-maxage=86400, max-...
3
votes
1answer
174 views

Magento2 : Will cacheable = “false” invalidate cache in varnish cache?

I have store in Magento2 and planning to integrate varnish cache. Want to confirm if there is an issue with cacheable="false".
1
vote
1answer
485 views

X-Magento-Cache-Debug: MISS

I installed Varnish, but getting this message. Varnish cache not working. And check the var/page_cache/ directory is not empty.still have mage-tags file. i have in System > Full Page Cache > ...
2
votes
0answers
83 views

Magento 1.8 and varnish cache 4.0.5 get 404 product page issue randomly

I have used varnish cache for awhile on my Magento 1.8. It worked well for a long time until now I'm having an issue that some product URL got 404 error. It's randomly, not specify any product. And ...
0
votes
2answers
223 views

How to install and Configure Varnish in Magento 2?

How to configure varnish in magento 2? Selecting Varnish Cache in Stores Configuration is enough?
0
votes
1answer
227 views

Magento 2.2.6 Varsnish not working after complete configuration

I have configure varnish in my Magento 2.2.6 still not getting option X-Magento-Cache-Debug: HIT. Anybody know what i am missing in my configuration. Below is my default.vcl file. vcl 4.0; import ...
5
votes
7answers
3k views

Magento 2.2.5 to 2.2.6 upgrade error

When trying to upgrade from Magento 2.2.5 to 2.2.6 I've noticed some strange behavior blocking the upgrade. The first commands I did without problem are: composer require magento/product-community-...
1
vote
0answers
71 views

Question about Magento speed and adding Varnish cache

I got a task to speed up Magento 2 site. Now im facing with a huge problem. Site is hosted on shared hosting (quite good and reputable company). There is plenty of power but every shared hosting has ...
3
votes
0answers
47 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
2
votes
3answers
280 views

Slow Magento 2.2.5

Good evening, my site is https://www.emporiobit.com.br it is not yet in production. I use magento 2.2.5 with varnish and redis I configured 4G for Varnish and 4G for php memory_limit, my VPS has 12gb ...
0
votes
1answer
40 views

Question for the Purge Experts!

Setup: Magento 2.2.4 Multi-Store (running on Apache server) Varnish 5.2.1 (in combination with Hitch to handle ssl) Redis 4.0.11 Problem: When saving a product not only the related categories/...
1
vote
0answers
60 views

Cache issues with logged in users Magento2

We're facing an annoying issue in Magento 2.2.5. We have customers that are attached to a customergroup with different prices. This is our scenario: User visits 2 or 3 categories and sees the regular ...
0
votes
0answers
72 views

Varnish Intermittent 503 on larger files

I have a standard Magento 2 / Varnish setup with Redis as a session backend and Nginx for SSL termination - most things are working as expected but sometimes I get the 503 backend fetch error from ...
2
votes
0answers
139 views

Varnish intermittent 503 in Magento 2

I've followed the dev docs on setting up varnish, and increased the http_resp_size and http_resp_hdr_len when the daemon starts. Most of the time it's fine, but every once in a while I will get a ...
1
vote
2answers
281 views

Page doesn't contain HIT in cache header

I am publishing my magento extension but in the revision I was notified of the issue: Does anyone have any useful help?
0
votes
0answers
47 views

Magento 2.2.5 loaded unconfigured site

Good afternoon everyone. I am having problems regarding the magento cache This is configured magento 2.2.5 + varnish-5.0.0 + redis 3.2.6 The site is loaded both admin and frontend but is loaded ...
1
vote
0answers
36 views

Category Navigation suddenly disappeared

Sorry in advance I'm not very familiar with Magento. I am working on a Magento Web Shop and one day the top navigation, where you can open the categories, just disappeared. I tried searching in the ...
0
votes
1answer
1k views

Varnish and no-store, no-cache, must-revalidate, max-age=0

I am using Varnish with Magento 2. I see that cache works (but for a short time) since I have the X cache: hit. And the TTFB is really good (40ms). But I have *no-cache, must-revalidate, max-age=0* ...
5
votes
1answer
808 views

Magento 2 : Menu does not appear on home page

In Magento 2.2.4 CommunityOrEnterprise edition default menu not appear on home page when enabled Varnish Cache. Actually problem is related to Varnish Cache if I set Varnish Cache from Store -> ...
1
vote
2answers
484 views

How to use Identities for to implementing hole punching in my custom module magento 2

I tried this link link Not working for me. Any other way to achieve the hole punching.
3
votes
2answers
333 views

Magento 2.2 : How to programatically clear the varnish cache by cache tag

I need to switch the currency based on user IP location so I'm using this auto currency extension, it works only when I disabled the FPC otherwise it just cache the previous content and never gets ...
0
votes
0answers
89 views

Magento 2.2.3 with Varnish 5 wrong content for customer (groups)

We are still running Magento 2.2.3 (not yet 2.2.4) with Varnish 5 and we experiencing the following issue: Always some category pages show prices for specific logged in customers (based on their ...
3
votes
1answer
57 views

how to create not cacheable helper method?

We have written logic to find client IP address in the custom helper. public function getIpAddress(){ .............. return $ip; } It works only at first hit after that it only displays the old ...
1
vote
0answers
191 views

Magento 2 : X-Magento-Cache-Debug:MISS, over SSL, pages are not being cached by varnish

I have configure varnish with magento 2 with the reverse proxy in apache ubuntu. But, when I see at the headers, I always get the header MISS from the host. So, page is not being cached by the ...
0
votes
0answers
161 views

Magento 2 : Varnish not working with HTTPS

I have configure the varnish for Ubuntu 16.04 with magento 2. Varnish cache is working with the server ip or when I check with output of curl -I http://localhost Output : Last-Modified: Mon, 28 ...
0
votes
0answers
163 views

Magento 2 - Which cache are required to be installed on server for best performance in Magento 2?

Magento 2 best performance which are the cache should be installed on the server for best performance of Magento 2 website in production mode? Varnish/ Redis/ Memcache which one is best option to ...
1
vote
0answers
427 views

SSL, Nginx, Varnish - Too many redirects

I know there are several questions on this issue, but no solutions seems to work for me. I have Magento 1.9 running on Nginx port 8080 and with Varnish in front running on port 80. Without SSL it's ...
0
votes
2answers
620 views

Magento 2.2 home page only 503 error on varnish

All pages are working fine and the only home page is giving error: Error 503 Backend fetch failed with varnish 4 enabled
0
votes
0answers
19 views

M2: Trying to Put uncacheable data error

I have the following error in my apache 2 error log repeating many times: [Fri May 04 17:02:36.591798 2018] [pagespeed:error] [pid 8124] [mod_pagespeed 1.12.34.2-0 @8124] [0504/170236:ERROR:...