New answers tagged

0

you can see headers in configuration file: https://github.com/magento/magento2/blob/9544fb243d5848a497d4ea7b88e08609376ac39e/app/code/Magento/PageCache/etc/varnish6.vcl#L193 you can manipulate headers in varnish by commenting them or using set unset parameter.


0

you can see configuration file: https://github.com/magento/magento2/blob/9544fb243d5848a497d4ea7b88e08609376ac39e/app/code/Magento/PageCache/etc/varnish6.vcl#L193 probably headers your are looking for just not set or unset. you have some of them: Age: 46 Grace: none X-Magento-Cache-Debug: HIT


0

Based on the logs provided, a backend health check fails in Varnish for /pub/health_check.php. If you have configured NGINX with root /path/to/magento/pub (which you should, as it's more secure), then you need to edit the health check VCL code in order to remove pub, e.g. here: Change your generated VCL code (earlier link is just to point location in VCL ...


0

this is very simple solution, as example use HTTPS only: apache 80 (return 301) -> apache 443 (proxy) -> varnish 8081 (cache) -> apache 8080 (php-fpm) then in apache 443 (proxy), you need to configure something like this: ProxyPreserveHost On ProxyPass / http://127.0.0.1:8081/ RequestHeader set X-Forwarded-Port "443" RequestHeader set X-Forwarded-...


0

It was the BannersLite and GDPR/Cookie plugin from Amasty. The BannersLite plugin purges all categories on each product save and order. The GDPR/Cookie purges the ENTIRE Varnish cache when you click OK on the cookie notification.....


1

your development must be separated from live. it is better for security and maintenance. just copy your magento installation to another account / home folder. copy nginx config, update root, domain and base url. in varnish you need to add either one: full domain bypass: if (req.http.host ~ "^dev\.example\.com$") { return (pass); } or parameter ?developer ...


0

Varnish can store data in different backends. Default is memory with limited size. More about varnish storage configuration: https://varnish-cache.org/docs/6.3/users-guide/storage-backends.html


3

To make Magento aware of the Varnish servers, add the following section to app/etc/env.php. For Example: 'http_cache_hosts' => array ( 0 => array ( 'host' => 'varnish-0', 'port' => '80', ), 1 => array ( 'host' => 'varnish-1', 'port' => '80', ), ), In order to ensure the Varnish cache ...


0

I am using Varnish + Redis for Full Page Cache at the same time. In Magento 2.3.2, after clear both cache, visit some pages, then you will find the database in Redis for page cache will not have any data. So if you are using Varnish cache, Full Page Cache will not use the page_cache setting from env.php. If you remove Varnish, Full Page Cache will use the ...


0

Magento 2.2 no but Magento 2.3.3 yes https://devdocs.magento.com/guides/v2.3/release-notes/release-notes-2-3-3-open-source.html


0

No, for more details pleease visit this link : https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.0CE.html


0

As refereed by @MichaelHa Try this Code: <div id="popup-modal"> <h1> Hi I'm here.... </h1> </div> <script> require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { type: 'popup', ...


Top 50 recent answers are included