{"id":10700,"date":"2026-03-19T05:18:45","date_gmt":"2026-03-19T05:18:45","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=10700"},"modified":"2026-03-19T05:18:47","modified_gmt":"2026-03-19T05:18:47","slug":"disable-nginx-cache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/","title":{"rendered":"How to Disable NGINX Cache"},"content":{"rendered":"\n<p>NGINX cache is a powerful way to speed up websites and improve web performance. It allows you to quickly serve commonly or recently requested content without sending the request to upstream server. But sometimes, you may need to disable NGINX cache. In this article, we will learn how to disable NGINX cache.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#How_NGINX_Cache_Works\" >How NGINX Cache Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#Why_Disable_NGINX_Cache\" >Why Disable NGINX Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#How_to_Disable_NGINX_Cache\" >How to Disable NGINX Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#1_Disable_Cache_Globally\" >1. Disable Cache Globally<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#2_Disable_Caching_for_Specific_Folder\" >2. Disable Caching for Specific Folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#3_Disable_Cache_for_Specific_File_Type\" >3. Disable Cache for Specific File Type<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#4_Force_Client_Browser_to_Not_Cache\" >4. Force Client Browser to Not Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#5_Disable_OS_Level_Caching\" >5. Disable OS Level Caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#6_Disable_Caching_via_cPanelWHM\" >6. Disable Caching via cPanel\/WHM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#Clear_Cache_Directory\" >Clear Cache Directory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#Points_to_Remember\" >Points to Remember<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_NGINX_Cache_Works\"><\/span>How NGINX Cache Works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>NGINX is typically used as a reverse proxy along with an application server such as Apache server. When caching is enabled in NGINX, then it stores the responses of commonly received requests, as well as recently received requests. When NGINX receives a request from user&#8217;s client web browser, it will first check if its response is present in the cache. If it is present and is still valid, then it will directly return the response without sending the request to application server. If the response is not present or the stored cached response is stale, only then the request is sent to upstream server. In this case, it will update the cached response with latest information. This reduces server load by preventing unnecessary requests.<\/p>\n\n\n\n<p>Caching is commonly used to serve static files such as CSS, JS, as well as images and videos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Disable_NGINX_Cache\"><\/span>Why Disable NGINX Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>While caching is definitely useful, there are some instances when you may need to disable NGINX cache.<\/p>\n\n\n\n<p>1. <strong>Development\/Testing<\/strong> &#8211; In a development or testing environment, you are frequently changing inputs to see how it affects the result. In such cases, you do not want to serve cached content every time. So you will need to temporarily disable caching.<br>2. <strong>Malfunction or errors<\/strong> &#8211; Sometimes, the NGINX cache may become corrupted. In this case, it may serve stale or even wrong content. This may occur because of a bug in your program. In this case, you will need to disable caching till the issue is fixed.<br>3. <strong>Refresh or Flush Cache<\/strong> &#8211; Sometimes website administrators want to forcibly refresh or flush cache once in a while, just to make sure NGINX is not serving stale content. Here too, you will need to temporarily disable cache.<br>4. <strong>Specific URLs or File Types<\/strong> &#8211; You may not need to cache all pages on a website. In every website, there will always be certain pages such as checkout page, where you need to show latest content dynamically. For these pages, you will need to disable caching.<br>5. <strong>Authenticated Pages<\/strong> &#8211; Some web pages may be accessed by only authorized users. Such pages cannot be cached otherwise they will be available for all. In this case, you will need to disable caching for those pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Disable_NGINX_Cache\"><\/span>How to Disable NGINX Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some ways to disable cache in NGINX.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Disable_Cache_Globally\"><\/span>1. Disable Cache Globally<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Generally, NGINX is used as a reverse proxy along with another backend server like Apache. If you want to completely disable caching across all URLs on your website, then add the following location block in your NGINX configuration file at \/etc\/nginx\/nginx.conf or virtual host file at \/etc\/nginx\/sites-available. Replace backend_server_ip below with the IP address or hostname of your backend server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/ {<br>   proxy_no_cache 1;<br>   proxy_cache_bypass 1;<br>   proxy_cache off;<br>   proxy_pass http:\/\/backend_server_ip;<br>}<\/pre>\n\n\n\n<p>In the above code, proxy_no_cache tells NGINX not to cache response. proxy_cache_bypass forces NGINX not to lookup response in cache and send the request to backend server. proxy_caching off explicitly turns off proxy caching.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Disable_Caching_for_Specific_Folder\"><\/span>2. Disable Caching for Specific Folder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you want to disable caching for specific folder instead of entire website, then replace &#8216;location \/&#8217; above with the location block pointing to the folder. Here is an example to disable caching for folder \/products.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/products {<br>   proxy_no_cache 1;<br>   proxy_cache_bypass 1;<br>   proxy_cache off;<br>   proxy_pass http:\/\/backend_server_ip;<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Disable_Cache_for_Specific_File_Type\"><\/span>3. Disable Cache for Specific File Type<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Sometimes, you may want to disable caching for specific type of files such as PDF, CSS, JS, etc. In such cases, add the following location block to you NGINX configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location ~* \\.(css|js|pdf)$ {<br>    expires -1;<br>}<\/pre>\n\n\n\n<p>In the above code, we use expires -1 directive to immediately disable caching for css, js and pdf file types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Force_Client_Browser_to_Not_Cache\"><\/span>4. Force Client Browser to Not Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For development environments, you will need to prevent client browser from caching static files. For such cases, add Cache-Control and Expires header in location block.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/ {<br>  add_header Last-Modified $date_gmt;<br>  add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate;<br>  if_modified_since off;<br>  expires off;<br>  etag off;<br>}<\/pre>\n\n\n\n<p>The add_header directive will set required response headers. When client web browser reads this response, it will immediately stop caching it. If you want compatibility with old HTTP headers then you need to also add &#8216;add_header Pragma &#8220;no-cache&#8221;&#8216; in above configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Disable_OS_Level_Caching\"><\/span>5. Disable OS Level Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Sometimes NGINX file serving may conflict with OS based optimizations. In such cases, you need to disable NGINX file serving using sendfile and directio directives.<\/p>\n\n\n\n<p>Add &#8216;sendfile off&#8217; in http or server block.<\/p>\n\n\n\n<p>Alternatively, use &#8216;directio 0&#8217; in location block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Disable_Caching_via_cPanelWHM\"><\/span>6. Disable Caching via cPanel\/WHM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If your website uses cPanel or WHM to manage NGINX instance, then here are the steps to disable caching in NGINX.<\/p>\n\n\n\n<p>Log into cPanel as root user.<\/p>\n\n\n\n<p>Go to Home->Software->NGINX Manager.<\/p>\n\n\n\n<p>Set &#8216;Use caching option by default&#8217; to Disabled.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Clear_Cache_Directory\"><\/span>Clear Cache Directory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After you disable caching, you need to also clear cache directory. Otherwise, NGINX may continue to serve cached content even after caching is disabled. For this, the first step is to identify the cache directory. It is typically located at \/var\/cache\/nginx.<\/p>\n\n\n\n<p>Run the rm command to clear cache directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo rm -rf \/var\/cache\/nginx\/*<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Points_to_Remember\"><\/span>Points to Remember<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some important points to remember when you disable caching in NGINX.<\/p>\n\n\n\n<p>1. Disable caching selectively for development or specific folders, instead of doing it for all URLs across your website.<br>2. It is advisable to use separate NGINX configurations and virtual host files for development and production environments.<br>3. Regularly purge cache so that is it fresh and does not serve stale content.<br>4. If you have set NGINX response headers to disable cache then make sure they are working as expected using Developer Tools in client web browser.<br>5. If cached response is still served even after you disable cache, then clear NGINX cache directories and restart server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt how NGINX cache works. We have learnt why you may need to disable NGINX caching and finally we looked at the different ways to disable NGINX cache. You can use any of these methods depending on your requirement. After you disable caching, please clear the cache directory otherwise NGINX may still continue to serve cached content for some time.<\/p>\n\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/fix-502-bad-gateway-error-nginx\/\">How to Fix 502 Bad Gateway Error in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/rewrite-url-parameters-nginx\/\">How to Rewrite URL Parameters in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-redirect-location-to-another-domain-in-nginx\/\">How to Redirect Location to Another Domain in NGINX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.<\/p>\n","protected":false},"author":1,"featured_media":10718,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[26],"class_list":["post-10700","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-disable-cache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Disable NGINX Cache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Disable NGINX Cache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-19T05:18:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-19T05:18:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Disable NGINX Cache\",\"datePublished\":\"2026-03-19T05:18:45+00:00\",\"dateModified\":\"2026-03-19T05:18:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/\"},\"wordCount\":1075,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1\",\"keywords\":[\"disable cache\"],\"articleSection\":[\"Nginx\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/\",\"name\":\"How to Disable NGINX Cache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1\",\"datePublished\":\"2026-03-19T05:18:45+00:00\",\"dateModified\":\"2026-03-19T05:18:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1\",\"width\":300,\"height\":200,\"caption\":\"disable cache in nginx\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-nginx-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Disable NGINX Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Disable NGINX Cache - Ubiq BI","description":"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.","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:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/","og_locale":"en_US","og_type":"article","og_title":"How to Disable NGINX Cache - Ubiq BI","og_description":"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.","og_url":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2026-03-19T05:18:45+00:00","article_modified_time":"2026-03-19T05:18:47+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Disable NGINX Cache","datePublished":"2026-03-19T05:18:45+00:00","dateModified":"2026-03-19T05:18:47+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/"},"wordCount":1075,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1","keywords":["disable cache"],"articleSection":["Nginx"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/","url":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/","name":"How to Disable NGINX Cache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1","datePublished":"2026-03-19T05:18:45+00:00","dateModified":"2026-03-19T05:18:47+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Sometimes website administrators need to disable NGINX cache. Here is how to disable caching in NGINX.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1","width":300,"height":200,"caption":"disable cache in nginx"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Disable NGINX Cache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/03\/disable-cache-in-nginx.jpg?fit=300%2C200&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-2MA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=10700"}],"version-history":[{"count":17,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10700\/revisions"}],"predecessor-version":[{"id":10717,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10700\/revisions\/10717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/10718"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=10700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=10700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=10700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}