{"id":39581,"date":"2024-04-29T13:28:56","date_gmt":"2024-04-29T13:28:56","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=39581"},"modified":"2026-02-19T07:20:27","modified_gmt":"2026-02-19T07:20:27","slug":"caching-in-nginx-balancer","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer","title":{"rendered":"Caching in NGINX Balancer"},"content":{"rendered":"<h2 class=\"ack-h2\">Caching in NGINX Balancer<\/h2>\n<p>With NGINX, caching entails data storage directly on the web server. For example, the files a user accesses while viewing a web page may be stored in your NGINX cache folder. The user&#8217;s browser can obtain those files from the NGINX cache rather than having to fetch them from the main server if they return to that page later. In addition to saving time, this lowers network traffic.<\/p>\n<p>There are two basic ways that caching enhances performance when accessing resources:<\/p>\n<ul class=\"ack-ul\">\n<li>By keeping a copy of the resource closer to the user, it shortens the time it takes to access it.<\/li>\n<li>By reducing the quantity of requests, it expedites the generation of resources. For example, you can cache your blog&#8217;s homepage so that it doesn&#8217;t have to be recreated each time a visitor comes by.<\/li>\n<\/ul>\n<p>How to configure caching on an NGINX load balancer platform is covered in this guide.<\/p>\n<p>You can use caching with NGINX load balancer to reduce the workload on application servers. To apply caching, take the following actions:<\/p>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<p><strong>Step 1.<\/strong> <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/login\" target=\"_blank\" rel=\"noopener\">Log in<\/a> to the dashboard of the platform.<\/p>\n<p><strong>Step 2.<\/strong> Select &#8220;Create Environment&#8221; from the menu.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39583 size-full\" title=\"Create Environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment.png\" alt=\"Create Environment\" width=\"1275\" height=\"113\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment.png 1275w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment-300x27.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment-1024x91.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Create-Environment-768x68.png 768w\" sizes=\"(max-width: 1275px) 100vw, 1275px\" \/><\/a><\/p>\n<p><strong>Step 3.<\/strong> Install many application servers and use NGINX as a load balancer to set up the environment. To finish the configuration, specify the cloudlet limitations, give the environment a name, and click the Create button.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39584 size-full\" title=\"Add Load Balancer\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer.png\" alt=\"Add Load Balancer\" width=\"1225\" height=\"757\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer.png 1225w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer-300x185.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer-1024x633.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add_Load_Balancer-768x475.png 768w\" sizes=\"(max-width: 1225px) 100vw, 1225px\" \/><\/a><\/p>\n<p>Within a minute, your environment will be created and will show up in the list of environments.<\/p>\n<p><strong>Step 4.<\/strong> To configure the cache, click on the &#8220;Config&#8221; button for the NGINX node in your environment, then navigate to conf.d &gt; cache.conf.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39585 size-full\" title=\"Config\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1.png\" alt=\"Config\" width=\"1543\" height=\"238\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1.png 1543w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1-300x46.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1-1024x158.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1-768x118.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1-1536x237.png 1536w\" sizes=\"(max-width: 1543px) 100vw, 1543px\" \/><\/a><\/p>\n<p><strong>Step 5.<\/strong> To enable caching, remove the comment marks (typically represented by #) from the lines of code, as illustrated in the image below.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39586 size-full\" title=\"Enable Caching\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching.png\" alt=\"Enable Caching\" width=\"1600\" height=\"370\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching-300x69.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching-1024x237.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching-768x178.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Enable-Caching-1536x355.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39587 size-full\" title=\"Remove the Comments\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments.png\" alt=\"Remove the Comments\" width=\"1600\" height=\"345\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments-300x65.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments-1024x221.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments-768x166.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Remove-the-Comments-1536x331.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<ul class=\"ack-ul\">\n<li>The path and settings for caching in NGINX are configured using the `proxy_cache_path` directive. Below is an explanation of its specifications:\n<ul class=\"ack-ul\">\n<li><strong>Path:<\/strong> Indicates the path (such as\/var\/lib\/nginx\/cache}) where cached data will be kept.<\/li>\n<li><strong>Levels:<\/strong> Specifies how many directory tiers (for example, {[levels=levels]}) to employ in the caching hierarchy.<\/li>\n<li><strong>Keys Area:<\/strong> gives the cache zone a special name and a designated RAM size (e.g., name:size}, such as jelastic:32m}). This makes it possible for NGINX to effectively handle and store cached material.<\/li>\n<\/ul>\n<\/li>\n<li>The proxy_cache directive is used to create a shared memory storage area (called a &#8220;zone&#8221;) for caching in NGINX. This zone can be referenced and used in multiple configurations throughout NGINX. The `off` parameter, when specified, disables caching that may have been enabled in a previous configuration level.<\/li>\n<li>A directory (\/var\/lib\/nginx\/tmp}) where NGINX keeps temporary files containing data received from proxied servers is specified by the proxy_temp_path} directive. Under the designated directory, you can arrange these temporary files into a hierarchical subdirectory structure with up to three levels (level1}, level2}, and level3}). This facilitates effective temporary file management and organization within NGINX.<\/li>\n<li>The proxy_cache_valid {number}m directive specifies how long NGINX should keep cached content before considering it stale. For example, 720m means NGINX will keep cached content valid for 720 minutes (or 12 hours) before refreshing it from the origin server.<\/li>\n<\/ul>\n<p>To learn more about additional directives, please click on the provided link for more information.<\/p>\n<p><strong>Step 6.<\/strong> Save the changes you made and then restart the node to apply the modifications.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39588 size-full\" title=\"Save and restart\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart.png\" alt=\"Save and restart\" width=\"1543\" height=\"238\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart.png 1543w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart-300x46.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart-1024x158.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart-768x118.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-restart-1536x237.png 1536w\" sizes=\"(max-width: 1543px) 100vw, 1543px\" \/><\/a><\/p>\n<div class=\"cta-btn-top-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"cta-btn-mob-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-39581","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-caching-in-nginx-balancer","faq_topics-kb","faq_topics-load-balancer","faq_topics-nginx","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set Up NGINX Caching on A Load Balancer | Configuration Tutorial<\/title>\n<meta name=\"description\" content=\"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Caching in NGINX Balancer\" \/>\n<meta property=\"og:description\" content=\"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-19T07:20:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"Caching in NGINX Balancer\",\"datePublished\":\"2024-04-29T13:28:56+00:00\",\"dateModified\":\"2026-02-19T07:20:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\"},\"wordCount\":569,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\",\"name\":\"Set Up NGINX Caching on A Load Balancer | Configuration Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-04-29T13:28:56+00:00\",\"dateModified\":\"2026-02-19T07:20:27+00:00\",\"description\":\"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Caching in NGINX Balancer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Set Up NGINX Caching on A Load Balancer | Configuration Tutorial","description":"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.","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:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer","og_locale":"en_US","og_type":"article","og_title":"Caching in NGINX Balancer","og_description":"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-19T07:20:27+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"Caching in NGINX Balancer","datePublished":"2024-04-29T13:28:56+00:00","dateModified":"2026-02-19T07:20:27+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer"},"wordCount":569,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer","url":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer","name":"Set Up NGINX Caching on A Load Balancer | Configuration Tutorial","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-04-29T13:28:56+00:00","dateModified":"2026-02-19T07:20:27+00:00","description":"Set up NGINX caching on your load balancer to reduce workload on application servers. Follow this tutorial to learn how to configure caching.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/caching-in-nginx-balancer#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"Caching in NGINX Balancer"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=39581"}],"version-history":[{"count":3,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39581\/revisions"}],"predecessor-version":[{"id":53341,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39581\/revisions\/53341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=39581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}