Questions tagged [varnish]

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

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

Installation & Varnish Test Results - Failed in 7.4 & 8.1 in magento marketplace

Installation & Varnish Test Results - Failed in 7.4 & 8.1 when automation testing in marketplace
user avatar
1 vote
1 answer
64 views

Varnish - Error 503 Backend fetch failed (Header too long)

Getting following error while using Nginx. Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 32771 Varnish cache server Following error logged in varnish log. BogoHeader ...
user avatar
0 votes
1 answer
46 views

Is "page_cache" the same thing as full page cache in app/etc/env.php?

I was reading this article where the author shows how to configure both varnish and redis for Magento 2. In the first portion, he configured Varnish. In the second section, he ends up using this ...
user avatar
0 votes
1 answer
41 views

Magento2 How to restart varnish with magento cache clean / flush

I have setup varnish and varnish is working okay with service varnish restart command but i want to restart varnish with php bin/magento cache:flush command. Does anyone suggest me how i can do this .
user avatar
1 vote
1 answer
29 views

How to setup different Varnish cache blocks based on request?

I have a redirect in my store that shows a different store view based on the client's location. It reads the header via Fastly and redirects the customer to a different store view using every time the ...
user avatar
0 votes
1 answer
82 views

How magento 2.4 clean varnish

According to magento Devdocs for Varnish cleaning If you have configure in env.php the --http-cache-hosts parameter magento can clean Varnish cache from admin like it clean its internal caches. This ...
user avatar
  • 892
0 votes
1 answer
19 views

Magento 2 website varnish x-varnish-age = 0

When I refresh page and check the header of homepage I got this below information where x-varnish-age=0 Want to confirm if there is an issue with cacheable="false"? If any block on page is ...
user avatar
0 votes
0 answers
69 views

Error 404 backend when using Varnish

I have installed magento 2.4.3-p1 on Ubuntu 20.04 with Varnish 6, Lets encrypt SSL and nginx. Everything was working until i installed and enabled varnish and edited nginx to listen on port 8080. I am ...
user avatar
0 votes
1 answer
50 views

Currency switcher shows different currency in random pages - Caching related issue

I am running magento 2.4.3 and I am having as default currency EUR in my website and as allowed currencies, EUR and USD only. Visiting the site homepage, EUR shows to be the default currency but when ...
user avatar
0 votes
1 answer
30 views

How to resolve Varnish Server Caching Issue in Magento 2?

in my setup, I need to clear varnish caching at the server at all time even I make small changes then also need to clear the varnish cache at the server side so can anyone help me with this?
user avatar
0 votes
1 answer
80 views

Is Varnish+Redis+Memcached+Nginx a good idea?

We've just launched www.artlounge.in on a Digital Ocean droplet using Cloudways, As part of the cloudways offering you can have all the below activated at the same time Varnish Memcached Redis Nginx ...
user avatar
0 votes
0 answers
91 views

magento 2 varnish 6 image not working

configured a Varnish6.2.1 on Magento, but some of the images in the foreground show 503。 Part of the background does not show when uploading product pictures。 I checked the Varnish log and it showed &...
user avatar
0 votes
0 answers
36 views

Magento 2: Problem with plugin for Magento\Framework\App\Response\Http

i am trying to create a plugin for class Magento\Framework\App\Response\Http for beforeSendResponse and do some actions like session setter.. but it did not work as expected. The code run several ...
user avatar
1 vote
1 answer
148 views

Extreme big headers only in large configurable products

We have a Magento 2.4.0 store. Most of our products are configurable. And some of them are having a lot of options. We also use swatch options. We have discovered some links which return: Error 503 ...
user avatar
  • 892
0 votes
1 answer
87 views

Magento 2 on Apache + Varnish getting continuous purge request

I have configured Varnish on my ubuntu server with apache. But varnish is showing a lot of repetitive purge requests and the site is extremely slow. What could be the reason behind it? I have magento ...
user avatar
0 votes
0 answers
94 views

Disabling X-Magento-Vary for customer groups Varnish cache

We have no differing content on our web pages for logged in and not logged in customers. With the exception of a small drop down menu showing log out/my account. Would disabling X-Magento-Vary cookie ...
user avatar
  • 471
0 votes
1 answer
44 views

Quote table showing same IP for each Quote Entity

I have set up Varnish 4 in Centos 7 with Apache and Magento 2.4.2. Varnish is working fine but there is one issue we are facing is that. Every order or quote showing the same customer IP which is of ...
user avatar
0 votes
1 answer
36 views

Last-Modified header is M2.4.3 upgrade date

We have recently upgraded our M2.4.3 version and have noticed that the last modified header for all our web pages is now fixed at the exact upgrade date of our store across all web pages even newly ...
user avatar
  • 471
0 votes
1 answer
29 views

Magento 2 : What is Purpose of Custom Varnish Synthetic Rule For Customer Ajax Login?

I have a situation where customer ajax login is not working even though the customer submits valid credentials. Instead, the page reloads and the customer is not logged in. To clarify, it DOES work ...
user avatar
0 votes
1 answer
71 views

Magento 2 : Sign In/ Sign Out link improper behavior with varnish cache

Preconditions (*) Magento 2.4.2 Varnish 6 SSL enabled Steps to reproduce (*) Configure magento to use varnish cache. Sign In and browse some pages. Then Sign out. Expected result (*) After sign-...
user avatar
0 votes
3 answers
106 views

Varnish applied to Magento 2 Instance?

I have installed the Varnish and configured it to my local instance. And I have created the logs before Varnish and after Varnish as below. And the front-end response headers. My question is when I ...
user avatar
  • 3,886
0 votes
0 answers
49 views

Magento2 Special Price is not correctly reflecting on Product List Page and Search Page

Pr-conditions: Magento version: Magento Commerce 2.3.6 Varnish version : 5.2.1 PHP version: PHP 7.2.33 MySQL version: 5.7 Multi Website architecture Catalog Price Scope = "Website" (Admin &...
user avatar
  • 1
0 votes
1 answer
69 views

Varnish not loading content from cache when refreshing manually

We have setup varnish on our magento AWS server with nginx ssl configuration. Varnish works fine on all other pages except the homepage. Case 1 - Refresh the page with reload button on browser - TTFB -...
user avatar
  • 866
0 votes
1 answer
431 views

my varnish always miss

My varnish always miss,but if i refresh many time in one second,it will return hit. This is my default.vcl # VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish ...
user avatar
  • 1
0 votes
1 answer
255 views

Purge Varnish Cache for specific URL with CURL

I have checked this but it did not help. On top of that, I receive an extra error on that question. When I run this: curl -X PURGE -H 'X-Magento-Tags-Pattern: .*' https://www.example.com/my-url It ...
user avatar
0 votes
1 answer
395 views

Magento 2.4 Error flushing Varnish server. Host: "127.0.0.1". PURGE response code: 405 message: Not Allowed after running upgrade command

I enabled varnish cache from admin(magento 2.4), then I ran this command bin/magento setup:config:set --http-cache-hosts=127.0.0.1 Now I can't run the upgrade script. I'm getting this error: Error ...
user avatar
  • 11
0 votes
1 answer
64 views

Magento 2 Target Rule constantly invalidating in EE

I am using Magento EE - 2.3.1 version with Varnish and my debug.log file is full with the below log report.DEBUG: cache_invalidate: {"method":"GET","url":"<...
user avatar
  • 450
1 vote
0 answers
121 views

X-Magento-Vary Cookie Set Incorrectly?

Have noticed that sometimes my X-Magento-Vary cookie is set serving me up non cached pages. Removing this cookie allows the FPC to work fine again. Not entirely sure when these should be set but have ...
user avatar
  • 5,215
0 votes
0 answers
185 views

Magento : Recieving errors when config nginx varnish on docker

I recieving error nginx: [emerg] host not found in upstream "varnish" in /etc/nginx/conf.d/default.conf:53 error in varnish log Backend host '"web"' could not be resolved to an ...
user avatar
1 vote
1 answer
129 views

How to change or set cache key based on browser user agent?

Is it possible to maintain separate caches in Varnish or Fastly for desktop and mobile users? I am trying to load only the required items in the mobile devices instead of loading all CSS files, blocks,...
user avatar
  • 800
1 vote
1 answer
370 views

Magento 2 + Varnish - Product pages not updating when product is updated

I have Varnish 6.4 set up with Magento 2.4.2 in Kubernetes, and can confirm it is set up correctly by the "x-magento-cache-debug HIT" header. However, when I update a product, the product ...
user avatar
  • 13
1 vote
0 answers
90 views

Magento 2.4.2 cacheable search results (past first page)

We have seen that Magento after first page (whenever there is a p request parameter) the code forcibly makes the page un-cacheable. Is there a reason for allowing the first page to be cached and not ...
user avatar
  • 233
0 votes
0 answers
35 views

Odd varnish behavior after saving a product. Hit idle send timeout

Magento 2.2.6, varnish 5.2.1. I'm on a product page, hit it twice to get a cache hit. Then I update the product from the back end and hit refresh on the product. The page will load fairly quickly (...
user avatar
  • 1
0 votes
1 answer
124 views

Magento 2 nginx restricting admin are by IP address not working

I am trying to restrict access to the admin area by IP address, but it's not working. When I type in the admin url, it redirects me to the home page. If I change the IP address being whitelisted, it ...
user avatar
0 votes
1 answer
239 views

Nginx sometimes returns 502 because of varnish panic

we are using Magento 2.3.5 with following setup: User >> NGINX >> VARNISH (locale Docker) >> APACHE + PHP Randomly some Requests returned by Nginx with 502. log file says: recv() ...
user avatar
  • 23
0 votes
0 answers
64 views

Rebuild cache (varnish/redis) after clearing?

I have my shops set up with Varnish and Redis, that all works great. It's fast, responsive. But after clearing the caches (i.e. after updating repositories and what not), every first load of every ...
user avatar
  • 1,208
0 votes
1 answer
519 views

Magento 2 admin redirect after adding varnish

I just added varnish cache to my site. Before I added it, I was able to get onto the admin panel. After adding it, though, trying to get to the admin panel results in an infinite redirect loop. It ...
user avatar
1 vote
0 answers
170 views

Magento 2 Varnish caching add to cart session from another user

When adding an item to cart, it will also show a second item, which I have previously added to cart from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a ...
user avatar
0 votes
1 answer
133 views

Failure in automatic Technical Review when uploading a module to the Marketplace

We are trying to upload a module to our Magento Marketplace account. We have passed the marketing review but the technical review (Installation & Varnish Test & MFTF Magento Supplied) is ...
user avatar
0 votes
1 answer
63 views

Are http_cache_hosts Applicable When Using Magento Cloud With Fastly?

Magento with Varnish When using Magento with plain old Varnish, you can configure http_cache_hosts in app/etc/env.php to instruct Magento to automatically purge Varnish caches when Magento Caches are ...
user avatar
0 votes
1 answer
654 views

Magento 2 + Varnish - Somehow creates different cached version for visits with recent browse activity

My Magento 2 setup with Varnish normalises user agents to pc/mobile/bot. It is configured to store different cached versions per user agent. The caching per user agent works great, but it seems to be ...
user avatar
  • 140
0 votes
1 answer
208 views

Varnish stopped caching - caused by Magento headers?

I had Varnish caching working for many months (staging environment), but just before launch I realised it is no longer caching any page. - My thoughts - I've generated a PHP file with randomised ...
user avatar
  • 140
0 votes
2 answers
597 views

Magento 2 + Varnish + Nginx + Multiple Order Placed from IPs

I am having a similar problem. the "Placed from IP" for all of my sales emails looks like this : 127.0.0.1 (XX.XXX.XX.XX, yy.yyy.yy.yy, 127.0.0.1) I believe the correct IP is the one marked ...
user avatar
0 votes
1 answer
148 views

First session add to cart action empties cart / clears session

I'm running an Nginx sandwiched Varnish backed magento 2.3.6 shop in development mode, set up like: Frontend nginx port 443, varnish port 80, backend nginx port 8080, plus redis for session cache. ...
user avatar
  • 1
0 votes
1 answer
359 views

how to upload default.vcl from magento2 to etc/varnish/default.vcl?

I follow this steps. (https://magemastery.net/blog/how-to-configure-varnish-6-and-nginx-with-ssl-for-magento-2) I install vanish and nginx complete. Now i export default.vcl from magento2 and set ...
user avatar
0 votes
2 answers
335 views

Magento2: How to serve cookie-less cached version for crawlers on Varnish cache

As far as i know; magento assign a X-Magento-Vary cookie to each visitor first you visit website. So your first request always be non-cached version. After you got a X-Magento-Vary you see cached ...
user avatar
0 votes
3 answers
476 views

Magento Error 503 Backend fetch failed

we have an AWS hosting, suddenly we got this below issue. Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 65561 Varnish cache server we cant understand what's causing this ...
user avatar
0 votes
2 answers
519 views

Magento 2.3.3 + Varnish + Nginx + SSL + CentOS - 302 Too May Redirects

Hoping there are some Varnish guru's out there that can show me my mistake here. I'm experiencing an endless 302 redirect for both the frontend and admin. Here is my configuration: Nginx Configuration ...
user avatar
  • 43
0 votes
3 answers
694 views

Varnish & Cloudflare on Magento 2 - issues

I'm using Varnish on my Magento 2.4.1. I've enabled Cloudlfare now, it works well but when I do some changes on the backend (like adding text on category pages, etc), it is not reflecting on the ...
user avatar
  • 71
1 vote
1 answer
284 views

Magento with Varnish - var/cache folder still being used

I have a Magento store configured with Varnish. When everything is up to date site is fast. If I change something in the backend it doesn't get reflected on frontend unless I manually delete var/cache/...
user avatar
  • 11

1
2 3 4 5
8