PageSourceSearch

https://everyhost.co.uk/assets/varnish-cache-PZBg2Vhw.js

js everyhost.co.uk collected 2026-10-05 01:06:38 UTC 10,381 bytes, 1 lines download raw bytes

1import{j as e,L as c,S as o,Z as d,d as s,B as a,l,f as t,D as h,c as x,b as m}from"./index-5Kt7Qh8J.js";import{B as u}from"./BastionCallout-DydH7ATc.js";import{V as g}from"./PrereqCheckAnim-C9-elAxU.js";import{A as f,a as r,b as n,c as i}from"./accordion-Dhuw4CL5.js";import{C as b}from"./clock-DSETLUqn.js";import"./archive-CYq2pjB1.js";import"./chevron-down-Clp-7gc2.js";function C(){return e.jsxs(c,{children:[e.jsx(o,{title:"Varnish Cache for Magento 2: Full Page Caching",description:"EveryHost's pre-configured Varnish FPC serves cached Magento 2 pages from memory. Instant page loads, reduced server load, and better Core Web Vitals.",canonical:"https://everyhost.co.uk/varnish-cache"}),e.jsxs("section",{className:"pt-32 pb-24 bg-brand-dark relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-blue-900/20 to-transparent pointer-events-none"}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10 text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-500/10 text-blue-400 border border-blue-500/20 text-sm font-medium mb-6",children:[e.jsx(d,{className:"h-4 w-4"}),e.jsx("span",{children:"Full Page Cache"})]}),e.jsxs("h1",{className:"text-4xl md:text-6xl font-display font-bold mb-6 text-white leading-tight",children:["Varnish Cache for ",e.jsx("br",{}),e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-cyan-400",children:"Magento 2 Speed"})]}),e.jsxs("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:["Varnish HTTP accelerator serves cached pages in milliseconds, bypassing PHP entirely. Part of EveryHost's ",e.jsx(s,{href:"/magento-2-hosting",className:"text-blue-400 hover:text-blue-300 underline underline-offset-4",children:"Magento 2 hosting UK"})," stack. Your store delivers content faster than your competitors can blink."]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(a,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-white h-12 px-8",children:e.jsx("a",{href:l.orderLinks.magentoHosting,children:"Get Varnish Hosting"})}),e.jsx(s,{href:"/nginx-varnish-magento",children:e.jsx(a,{size:"lg",variant:"outline",className:"border-white/20 hover:bg-white/10 h-12 px-8",children:"Nginx + Varnish Stack"})})]}),e.jsx("div",{className:"mt-12",children:e.jsx(g,{})})]})]}),e.jsx("section",{className:"py-24",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-8",children:[e.jsxs("h3",{className:"text-xl font-bold mb-6 flex items-center gap-2",children:[e.jsx(b,{className:"text-blue-400"})," Performance Metrics"]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2 text-sm font-medium",children:[e.jsx("span",{children:"Time to First Byte (TTFB)"}),e.jsx("span",{className:"text-green-400",children:"Low"})]}),e.jsx("div",{className:"h-3 bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-blue-500 to-cyan-500 w-[95%]"})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2 text-sm font-medium",children:[e.jsx("span",{children:"Cache Hit Ratio"}),e.jsx("span",{className:"text-green-400",children:"95%+"})]}),e.jsx("div",{className:"h-3 bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-blue-500 to-cyan-500 w-[95%]"})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2 text-sm font-medium",children:[e.jsx("span",{children:"Server Load Reduction"}),e.jsx("span",{className:"text-green-400",children:"80%"})]}),e.jsx("div",{className:"h-3 bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-gradient-to-r from-blue-500 to-cyan-500 w-[80%]"})})]})]})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold mb-6",children:"How Varnish Accelerates Magento"}),e.jsxs("p",{className:"text-muted-foreground mb-6 text-lg",children:["Without caching, every Magento page request triggers full PHP execution and database queries. Varnish stores rendered HTML in memory, serving repeat visitors instantly. It's a core part of our ",e.jsx(s,{href:"/magento-2-hosting",className:"text-blue-400 hover:text-blue-300 underline underline-offset-4",children:"Magento 2 hosting UK"})," platform alongside Redis, OpenSearch, and Sentinel security."]}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(t,{className:"h-6 w-6 text-green-400 shrink-0"}),e.jsxs("div",{children:[e.jsx("strong",{className:"block text-white",children:"Pre-configured VCL"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Official Magento 2 Varnish Configuration Language files, tuned for ecommerce."})]})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(t,{className:"h-6 w-6 text-green-400 shrink-0"}),e.jsxs("div",{children:[e.jsx("strong",{className:"block text-white",children:"SSL Termination via Nginx"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"HTTPS works seamlessly. Nginx handles SSL, Varnish serves cached content."})]})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(t,{className:"h-6 w-6 text-green-400 shrink-0"}),e.jsxs("div",{children:[e.jsx("strong",{className:"block text-white",children:"Smart Cache Invalidation"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Product updates automatically purge relevant cache entries."})]})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(t,{className:"h-6 w-6 text-green-400 shrink-0"}),e.jsxs("div",{children:[e.jsx("strong",{className:"block text-white",children:"Core Web Vitals Boost"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Faster LCP and FID scores improve Google rankings."})]})]})]})]})]})})}),e.jsx("section",{className:"py-24 bg-white/5 border-y border-white/10",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Complete Caching Stack"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsx(s,{href:"/redis-opensearch",children:e.jsxs("span",{className:"block p-6 rounded-xl bg-background border border-white/10 hover:border-blue-500/50 transition-all cursor-pointer",children:[e.jsx(h,{className:"h-8 w-8 text-blue-400 mb-4"}),e.jsx("h3",{className:"font-bold text-lg mb-2",children:"Redis Backend"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"In-memory session and configuration cache."})]})}),e.jsx(s,{href:"/nvme-hosting",children:e.jsxs("span",{className:"block p-6 rounded-xl bg-background border border-white/10 hover:border-blue-500/50 transition-all cursor-pointer",children:[e.jsx(x,{className:"h-8 w-8 text-blue-400 mb-4"}),e.jsx("h3",{className:"font-bold text-lg mb-2",children:"NVMe Storage"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Fast enterprise NVMe for cache misses and database."})]})}),e.jsx(s,{href:"/sentinel",children:e.jsxs("span",{className:"block p-6 rounded-xl bg-background border border-white/10 hover:border-blue-500/50 transition-all cursor-pointer",children:[e.jsx(m,{className:"h-8 w-8 text-blue-400 mb-4"}),e.jsx("h3",{className:"font-bold text-lg mb-2",children:"Sentinel Protection"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Prevent cache poisoning and abuse."})]})})]})]})}),e.jsx("section",{className:"py-24",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[e.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),e.jsxs(f,{type:"single",collapsible:!0,children:[e.jsxs(r,{value:"item-1",children:[e.jsx(n,{children:"Do I need to configure Varnish myself?"}),e.jsx(i,{forceMount:!0,children:`No. We deploy Varnish with Magento's official VCL files pre-configured. Cache purging integrates automatically with Magento's cache management system. Just use the standard "Flush Magento Cache" buttons in admin.`})]}
1),e.jsxs(r,{value:"item-2",children:[e.jsx(n,{children:"Will Varnish cache my checkout pages?"}),e.jsx(i,{forceMount:!0,children:"No, and that's intentional. Varnish only caches public, non-personalised pages. Checkout, customer accounts, and cart pages bypass cache entirely, ensuring session data remains private and accurate."})]}),e.jsxs(r,{value:"item-3",children:[e.jsx(n,{children:"How does Varnish work with HTTPS?"}),e.jsx(i,{forceMount:!0,children:"Varnish doesn't handle SSL directly. Nginx sits in front as an SSL termination proxy, decrypting HTTPS requests before forwarding to Varnish. This architecture provides both security and performance."})]}),e.jsxs(r,{value:"item-4",children:[e.jsx(n,{children:"Can I clear the cache manually?"}),e.jsx(i,{forceMount:!0,children:"Yes. You can flush Varnish cache from Magento Admin (System → Cache Management), via CLI (bin/magento cache:flush full_page), or by contacting support for a full purge. We also provide SSH access for advanced users."})]})]})]})}),e.jsx("div",{className:"container mx-auto px-4 pb-24 max-w-4xl",children:e.jsx(u,{context:"sits alongside the cache layer: a nightly encrypted copy of the whole account held off the server, so a fast store is also a recoverable one."})}),e.jsx("section",{className:"py-24 bg-brand-dark",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Experience Faster Page Loads"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Join the Magento stores benefiting from our optimised Varnish configuration. Free migration included."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(a,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90",children:e.jsx("a",{href:l.orderLinks.magentoHosting,children:"Get Started"})}),e.jsx(s,{href:"/magento-hosting",children:e.jsx(a,{variant:"outline",size:"lg",children:"View All Plans"})})]})]})})]})}export{C as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.