Questions tagged [varnish]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

magento2.4.5 Static files do not recognize upper and lower case letters

Multi-store, open static file signature, after using varnish, magento2 language has larger letters, template directory letters are case indistinguishable. for example it_IT is parsed as it_it, and ...
  • 11
0 votes
1 answer
51 views

Varnish and cache warmer

I use cache warmer (Mirasvit) with Varnish. Cache warmer doesn't work correctly - either doesn't warm up product pages (config from: https://www.varnish-software.com/developers/tutorials/configuring-...
0 votes
1 answer
239 views

Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR

I have Magento 2.4.4 running on Plesk CentOS Server. PHP 8.1 PHP FPM Enabled Varnish on Port 80 Nginx on Port 8080 and 443 Apache on Port 7080 and 7081 Most of the time the website doesn't load well ...
0 votes
2 answers
76 views

Varnish default.vcl confusion

I'm trying to install varnish and I'm baffled about which configurations default.vcl file to use. The scenario: 1- I exported the magento varnish configuration file using the command bin/magento ...
  • 173
0 votes
0 answers
7 views

Varnish cache_invalidate methods - tags explanation

What is the difference between the these two cache_invalidate methods here? [2022-07-07T07:49:19.265402+00:00] main.DEBUG: cache_invalidate: {"method":"GET","url":"...
0 votes
1 answer
24 views

What module is causing cache clean everyday around 13.30 o'clock

Everyday around 13:30 o'clock something is running a cache clean function in our code. How can find the module? [2022-06-28T13:30:08.670600+00:00] main.DEBUG: cache_invalidate: {"method":&...
0 votes
1 answer
31 views

Magento totally invalidate varnish cache on every cron group:index run

Our Varnish cache is flushed every 20 minutes. Timewise in debug.log it looks like it's a cache_invalidate like this that fullly flush the Varnish Cache every 20 minutes when group:index cron is run. ...
0 votes
1 answer
22 views

Whats is major impact when implements redis cache and varnish cache on Magento 2?

I am finding out some of below question regrading cache. What is radis cache and varnish cache? Why we need to implement in Magento 2? What major impact we are show in Magento 2 website? Thank you.
0 votes
1 answer
24 views

Different full page cache per website

I have a multi-website setup and I would like 1 of the websites to use Varnish and but the other website to use Built-in Cache. I have looked and when I change the scope in Stores -> Configurations-...
  • 2,469
0 votes
1 answer
168 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
2 votes
1 answer
399 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 ...
0 votes
1 answer
131 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 ...
0 votes
1 answer
191 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 .
1 vote
1 answer
103 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 ...
0 votes
1 answer
304 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 ...
  • 932
0 votes
1 answer
39 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 ...
0 votes
0 answers
134 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 ...
0 votes
1 answer
93 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 ...
0 votes
1 answer
226 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?
0 votes
1 answer
297 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 ...
0 votes
0 answers
171 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 &...
0 votes
0 answers
71 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 ...
1 vote
1 answer
304 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 ...
  • 932
0 votes
1 answer
149 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 ...
0 votes
0 answers
153 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 ...
  • 471
0 votes
1 answer
105 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 ...
0 votes
1 answer
54 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 ...
  • 471
0 votes
1 answer
49 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 ...
  • 1,109
0 votes
1 answer
100 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-...
0 votes
3 answers
277 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 ...
  • 3,950
0 votes
0 answers
87 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 &...
  • 1
0 votes
1 answer
124 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 -...
  • 866
0 votes
1 answer
826 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 ...
  • 11
0 votes
1 answer
414 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 ...
0 votes
1 answer
668 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 ...
  • 11
0 votes
2 answers
118 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":"<...
  • 450
1 vote
0 answers
285 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 ...
  • 5,255
1 vote
1 answer
183 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,...
  • 799
1 vote
1 answer
558 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 ...
  • 13
1 vote
0 answers
139 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 ...
  • 233
0 votes
0 answers
47 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 (...
  • 1
0 votes
1 answer
188 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 ...
0 votes
1 answer
354 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() ...
  • 23
0 votes
0 answers
81 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 ...
  • 1,218
0 votes
1 answer
708 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 ...
1 vote
0 answers
209 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 ...
0 votes
1 answer
164 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 ...
0 votes
1 answer
99 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 ...
  • 1,109
0 votes
1 answer
849 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 ...
  • 160
0 votes
1 answer
276 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 ...
  • 160

1
2 3 4 5
8