{"id":377770,"date":"2023-04-21T10:50:31","date_gmt":"2023-04-21T10:50:31","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=377770"},"modified":"2025-11-19T07:18:45","modified_gmt":"2025-11-19T07:18:45","slug":"varnish-cache-in-magento2-adobe-commerce","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/","title":{"rendered":"Varnish Cache In Adobe Commerce (Magento 2)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What is Varnish<\/h2>\n\n\n\n<p>Varnish Cache  is a powerful reverse proxy server that is crucial in optimizing web performance by handling all incoming requests before they reach the web server.<\/p>\n\n\n\n<p>In the context of <a href=\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\">Caching in Magento 2<\/a>, Varnish first checks if the requested content is already cached. <\/p>\n\n\n\n<p>Here\u2019s a quick overview of how it works:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Browser \u2192 Varnish \u2192 Apache\/Nginx \u2192 PHP-FPM \u2192 Magento<\/pre>\n\n\n\n<p>When a user requests a page:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Varnish checks if it already has the page cached.<\/li>\n\n\n\n<li>If yes \u2192 it serves it instantly (a <strong>cache HIT<\/strong>).<\/li>\n\n\n\n<li>If not \u2192 it forwards the request to Apache\/Nginx, gets the response, stores it, and serves it next time (<strong>cache MISS \u2192 then HIT<\/strong>).<\/li>\n<\/ul>\n\n\n\n<p>You can all check the overall process in the video below \u2014<\/p>\n\n\n\n<div class=\"wp-block-wk-block-youtube-video wp-block-wk-block--yt-video components-placeholder\"><div class=\"wk-block--yt-video-frame\"><div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"_saCnVQEtxM\"><div class=\"components-placeholder__instructions\">_saCnVQEtxM<\/div><\/div><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u2699\ufe0f <strong>Step 1: Install Varnish<\/strong><\/p>\n\n\n\n<p>Begin by updating your system and installing Varnish:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt install varnish -y<\/pre>\n\n\n\n<p>Once installed, confirm the version:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">varnishd -V<\/pre>\n\n\n\n<p>Then, enable and start the service:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl enable varnish\nsudo systemctl start varnish<\/pre>\n\n\n\n<p>Now Varnish is running and ready for configuration.<\/p>\n\n\n\n<p>\ud83e\uddfe <strong>Step 2: Configure Varnish<\/strong><\/p>\n\n\n\n<p>Open the systemd service file to modify the listening port:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/lib\/systemd\/system\/varnish.service\n\nChange:\n\n-a :6081\n\nto:\n\n-a :80<\/pre>\n\n\n\n<p>Next, reload the system daemon:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl daemon-reload<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\ud83d\udd27 <strong>Define Backend Settings<\/strong><\/p>\n\n\n\n<p>Now, edit the main configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/varnish\/default.vcl\n\nLocate the backend default block and update it:\n\nbackend default {\n    .host = \"127.0.0.1\";\n    .port = \"8080\";\n}<\/pre>\n\n\n\n<p>This tells Varnish to forward all uncached requests to Apache, which will now run on port 8080.<\/p>\n\n\n\n<p>\ud83e\udde0<strong> Add Cache Hit\/Miss Header<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">sub vcl_deliver {\n    if (obj.hits &gt; 0) {\n        set resp.http.X-Cache = &quot;HIT&quot;;\n    } else {\n        set resp.http.X-Cache = &quot;MISS&quot;;\n    }\n}<\/pre>\n\n\n\n<p>Finally, restart Varnish:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl restart varnish<\/pre>\n\n\n\n<p>\ud83c\udfd7\ufe0f <strong>Step 3: Configure Apache<\/strong><\/p>\n\n\n\n<p>Next, move Apache to port <strong>8080<\/strong> so Varnish can handle port <strong>80<\/strong>.<\/p>\n\n\n\n<p>Edit the ports configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/apache2\/ports.conf\n\nChange:\n\nListen 80\n\nto:\n\nListen 8080<\/pre>\n\n\n\n<p>Then open your default virtual host file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/apache2\/sites-available\/000-default.conf\n\nUpdate:\n\n&lt;VirtualHost *:80>\n\nto:\n\n&lt;VirtualHost *:8080><\/pre>\n\n\n\n<p>Restart Apache to apply the changes:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl restart apache2<\/pre>\n\n\n\n<p>At this point, Apache serves backend requests on port 8080, and Varnish handles all frontend traffic on port 80.<\/p>\n\n\n\n<p>\ud83e\uddf1 <strong>Step 4: Configure Magento\u2019s Default VCL<\/strong><\/p>\n\n\n\n<p>Magento provides a ready-to-use Varnish configuration file.<br>First, export it from Magento\u2019s admin panel<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"519\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png\" alt=\"Magento2 Varnish Configuration\" class=\"wp-image-377785\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-300x130.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-250x108.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-768x332.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1536x664.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration.png 1650w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>then replace the default Varnish configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo cp \/path\/to\/magento\/varnish.vcl \/etc\/varnish\/default.vcl<\/pre>\n\n\n\n<p>(Remember to back up the existing default.vcl before replacing it.)<\/p>\n\n\n\n<p>Restart Varnish once again:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl restart varnish<\/pre>\n\n\n\n<p>\ud83d\ude80 <strong>Step 5: Verify Everything<\/strong><\/p>\n\n\n\n<p>Visit your Magento site and inspect response headers.<br>You should see:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">either :\n\nX-Cache: HIT\n\nor :\n\nX-Cache: MISS<\/pre>\n\n\n\n<p>A <strong>HIT<\/strong> means the response came directly from Varnish\u2019s cache, while a <strong>MISS<\/strong> means it was fetched from the backend.<\/p>\n\n\n\n<p>\ud83d\udcca <strong>Step 6: Performance Comparison (Apache vs Apache + Varnish)<\/strong><\/p>\n\n\n\n<p>To validate the performance boost, I used the <strong><a href=\"https:\/\/github.com\/wg\/wrk\/tree\/master\">wrk<\/a><\/strong> benchmarking tool under the same test conditions.<br>The results speak for themselves.<\/p>\n\n\n\n<p>\ud83e\uddee <strong>Apache 2 Only<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">wrk -t1 -c50 -d10s http:\/\/127.0.0.1\/Magento248\/pub\/ --latency\nRunning 10s test @ http:\/\/127.0.0.1\/Magento248\/pub\/\n  1 threads and 50 connections\n  Thread Stats   Avg      Stdev     Max   +\/- Stdev\n    Latency   852.86ms  525.60ms   1.84s    47.47%\n    Req\/Sec    34.50     19.16   100.00     69.15%\n  Latency Distribution\n     50%  822.51ms\n     75%    1.36s \n     90%    1.54s \n     99%    1.77s \n  338 requests in 10.02s, 32.71MB read\n  Socket errors: connect 0, read 0, write 0, timeout 41\nRequests\/sec:     33.74\nTransfer\/sec:      3.27MB<\/pre>\n\n\n\n<p>\u26a1 <strong>Apache + Varnish<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">wrk -t1 -c50 -d10s http:\/\/127.0.0.1\/Magento248\/pub\/ --latency\nRunning 10s test @ http:\/\/127.0.0.1\/Magento248\/pub\/\n  1 threads and 50 connections\n  Thread Stats   Avg      Stdev     Max   +\/- Stdev\n    Latency     3.39ms    1.33ms  29.07ms   75.75%\n    Req\/Sec    14.75k   228.10    15.00k    91.00%\n  Latency Distribution\n     50%    3.51ms\n     75%    3.99ms\n     90%    4.73ms\n     99%    7.30ms\n  146778 requests in 10.01s, 13.82GB read\nRequests\/sec:  14669.56\nTransfer\/sec:      1.38GB<\/pre>\n\n\n\n<p>\ud83d\udcc8 <strong>Result Analysis<\/strong><\/p>\n\n\n\n<p>The difference is remarkable.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Metric<\/strong><\/th><th>Apache Only<\/th><th>Apache + Varnish<\/th><th><strong>Improvement (Varnish)<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Requests\/sec<\/strong><\/td><td>33.74<\/td><td>14669.56<\/td><td><strong>~435\u00d7 faster<\/strong><\/td><\/tr><tr><td><strong>Average Latency<\/strong><\/td><td>852.86ms<\/td><td>3.39ms<\/td><td><strong>~252\u00d7 lower latency<\/strong><\/td><\/tr><tr><td><strong>P50 Latency (Median)<\/strong><\/td><td>822.51ms<\/td><td>3.51ms<\/td><td><strong>~234\u00d7 faster<\/strong><\/td><\/tr><tr><td><strong>P75 Latency<\/strong><\/td><td>1.36s <\/td><td>3.99ms<\/td><td><strong>~341\u00d7 faster<\/strong><\/td><\/tr><tr><td><strong>P90 Latency<\/strong><\/td><td>1.54s <\/td><td>4.73ms<\/td><td><strong>~326\u00d7 faster<\/strong><\/td><\/tr><tr><td><strong>P99 Latency<\/strong><\/td><td>1.77s <\/td><td>7.30ms<\/td><td><strong>~243\u00d7 faster<\/strong><\/td><\/tr><tr><td><strong>Total Requests (10 s)<\/strong><\/td><td>338<\/td><td>146778<\/td><td><strong>~434\u00d7 more requests handled<\/strong><\/td><\/tr><tr><td><strong>Transfer\/sec<\/strong><\/td><td>3.27MB<\/td><td>1.38GB<\/td><td><strong>~422\u00d7 higher throughput<\/strong><\/td><\/tr><tr><td><strong>Timeouts<\/strong><\/td><td>41<\/td><td>0<\/td><td><strong>No timeouts with<\/strong> <strong>Varnish<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u2705 <strong>Conclusion<\/strong><\/p>\n\n\n\n<p>By setting up <strong>Varnish Cache<\/strong> with <strong>Apache<\/strong> and <strong>Magento 2<\/strong>, you\u2019ve turned your store into a performance powerhouse.<\/p>\n\n\n\n<p>Varnish efficiently handles cached content, while Apache manages dynamic requests in the background.<\/p>\n\n\n\n<p>As shown in the benchmark, Varnish doesn\u2019t just optimize\u2014it revolutionizes response times.<br>So, if you\u2019re serious about scalability, it\u2019s time to put Varnish in front of your Magento 2 site!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If you require technical support, feel free to email us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>. <\/p>\n\n\n\n<p>Additionally, explore a wide array of solutions to boost your store&#8217;s capabilities by visiting the <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Adobe Commerce modules <\/a>section.<\/p>\n\n\n\n<p>For expert advice or to create tailored features, <a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">hire Adobe Commerce Developers<\/a> for your project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Varnish Varnish Cache is a powerful reverse proxy server that is crucial in optimizing web performance by handling all incoming requests before they reach the web server. In the context of Caching in Magento 2, Varnish first checks if the requested content is already cached. Here\u2019s a quick overview of how it works: <a href=\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121,1],"tags":[12967,1317,2070,6977],"class_list":["post-377770","post","type-post","status-publish","format-standard","hentry","category-magento-2","category-uncategorized","tag-adobe-commerce","tag-cache","tag-magento2","tag-varnish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-21T10:50:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-19T07:18:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Varnish Cache In Adobe Commerce (Magento 2)\",\"datePublished\":\"2023-04-21T10:50:31+00:00\",\"dateModified\":\"2025-11-19T07:18:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\"},\"wordCount\":530,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png\",\"keywords\":[\"Adobe Commerce\",\"cache\",\"Magento2\",\"varnish\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\",\"url\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\",\"name\":\"Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png\",\"datePublished\":\"2023-04-21T10:50:31+00:00\",\"dateModified\":\"2025-11-19T07:18:45+00:00\",\"description\":\"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration.png\",\"width\":1650,\"height\":713,\"caption\":\"varnish_configuration\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Varnish Cache In Adobe Commerce (Magento 2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog","description":"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/","og_locale":"en_US","og_type":"article","og_title":"Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog","og_description":"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server","og_url":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-21T10:50:31+00:00","article_modified_time":"2025-11-19T07:18:45+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png","type":"","width":"","height":""}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Varnish Cache In Adobe Commerce (Magento 2)","datePublished":"2023-04-21T10:50:31+00:00","dateModified":"2025-11-19T07:18:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/"},"wordCount":530,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png","keywords":["Adobe Commerce","cache","Magento2","varnish"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/","url":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/","name":"Varnish Cache In Adobe Commerce (Magento 2) - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration-1200x519.png","datePublished":"2023-04-21T10:50:31+00:00","dateModified":"2025-11-19T07:18:45+00:00","description":"Varnish is a reverse proxy server, which sits in-front of the web server and takes all the requests coming to the server","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/varnish_configuration.png","width":1650,"height":713,"caption":"varnish_configuration"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/varnish-cache-in-magento2-adobe-commerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Varnish Cache In Adobe Commerce (Magento 2)"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/377770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=377770"}],"version-history":[{"count":34,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/377770\/revisions"}],"predecessor-version":[{"id":513761,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/377770\/revisions\/513761"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=377770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=377770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=377770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}