{"id":10450,"date":"2026-02-02T04:29:23","date_gmt":"2026-02-02T04:29:23","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=10450"},"modified":"2026-03-19T05:22:27","modified_gmt":"2026-03-19T05:22:27","slug":"configure-apache-cache-ubuntu","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/","title":{"rendered":"How to Configure Apache Cache in Ubuntu"},"content":{"rendered":"\n<p>Enabling Apache cache allows you to speed up your website and improve server performance. Server-based caching also allows Apache server to use less memory as well as CPU processing to serve HTTP\/HTTPS requests. If you also enable browser-based caching, then it will even reduce the number of requests sent to Apache server, thereby reducing network bandwidth and data costs. So it is highly recommended to enable Apache cache if your website runs on Apache server. In this article, we will learn how to configure Apache cache in Ubuntu. These steps can be used for Apache server on most platforms.<\/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\/configure-apache-cache-ubuntu\/#Types_of_Apache_HTTP_Caching\" >Types of Apache HTTP Caching<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#Server-Side_Caching\" >Server-Side Caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#Browser-Side_Caching\" >Browser-Side Caching<\/a><\/li><\/ul><\/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\/configure-apache-cache-ubuntu\/#How_to_Configure_Apache_Cache_in_Ubuntu\" >How to Configure Apache Cache in Ubuntu<\/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\/configure-apache-cache-ubuntu\/#1_Server-Side_Caching\" >1. Server-Side Caching<\/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\/configure-apache-cache-ubuntu\/#2_Browser-Side_Caching\" >2. Browser-Side Caching<\/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\/configure-apache-cache-ubuntu\/#Benefits_of_Caching\" >Benefits of Caching<\/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\/configure-apache-cache-ubuntu\/#Additional_Info\" >Additional Info<\/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\/configure-apache-cache-ubuntu\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Types_of_Apache_HTTP_Caching\"><\/span>Types of Apache HTTP Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Apache server provides several types of caching. In this article, we will cover two most common HTTP caching mechanisms &#8211; server side caching and browser side caching.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Server-Side_Caching\"><\/span>Server-Side Caching<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This is the most common caching mechanism employed by web administrators. In this case, every piece of content belongs to one of the following 3 states.<br>a. Fresh &#8211; New content that is served directly from cache and is the latest.<br>b. Stale &#8211; Content which has expired and needs to be checked for fresh copy.<br>c. Non-Existent &#8211; Content does not exist in cache.<\/p>\n\n\n\n<p>In this case, when Apache server receives a request, it will check to see if the TTL (time to live) value of the content has expired or not. If it has expired, then Apache will check to see if an updated copy is available. If an updated copy is available, then it is stored in the cache with new TTL value. On the other hand, if the fetched content has not been updated and is the latest, then it will be served as a response.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Browser-Side_Caching\"><\/span>Browser-Side Caching<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In this case, Apache server sets the response header Expires and max-age so that the client browser starts storing the response in browser&#8217;s local cache. Thereafter, whenever the web browser receives a request, it will automatically first check if its response is locally stored in the browser cache. If so, it will serve the cached response from the browser itself, without even sending the request to server. If the cached data is expired or outdated, then only it will send the request to web server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Configure_Apache_Cache_in_Ubuntu\"><\/span>How to Configure Apache Cache in Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to configure Apache cache in Ubuntu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Server-Side_Caching\"><\/span>1. Server-Side Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We need to use mod_cache, mod_cache_disk, mod_expires and mod_headers Apache modules for server side caching. So first, we will need to enable them using the a2enmod command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update<br>sudo apt-get install apache2-utils #optional - provides htcacheclean utility<br>sudo a2enmod cache<br>sudo a2enmod cache_disk<br>sudo a2enmod expires<br>sudo a2enmod headers<\/pre>\n\n\n\n<p>On some systems such as RHEL\/Fedora, these modules may be enabled by default.<\/p>\n\n\n\n<p>Next, edit your site&#8217;s virtual host configuration file such as <em>\/etc\/apache2\/sites\/sites-available\/example.com.conf<\/em>. Add the following cache directives in &lt;VirtualHost&gt; tag.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;<br>    ServerName example.com<br>    ...<br><br>    CacheQuickHandler off<br>    CacheLock on<br>    CacheLockPath \/tmp\/mod_cache-lock<br>    CacheLockMaxAge 5<br><br>    &lt;Location \/&gt;<br>      CacheEnable disk<br>      CacheHeader on<br>      CacheDefaultExpire 600<br>      CacheMaxExpire 86400<br>      ExpiresActive on<br>      ExpiresDefault \"access plus 5 minutes\"<br>      Header merge Cache-Control public<br>    &lt;\/Location&gt;<br><br>&lt;VirtualHost\/&gt;<\/pre>\n\n\n\n<p>Save and close the file. Let us look at the above code in detail<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>CacheQuickHandler off &#8211; Will serve cached content only after authentication. This is secure and prevents unauthorized users from accessing your content, such as in <a href=\"https:\/\/ubiq.co\/business-reporting-software-tools\">data reporting systems<\/a>.<\/li>\n\n\n\n<li>CacheEnable disk &#8211; Setup disk caching for location \/<\/li>\n\n\n\n<li>CacheRoot &#8211; Specifies location to store cache files<\/li>\n\n\n\n<li>ExpiresActive and ExpiresDefault &#8211; Set expiration headers for content <\/li>\n<\/ol>\n\n\n\n<p>Check syntax using apachectl utility. Restart Apache server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apachectl configtest<br>sudo service apache2 restart<\/pre>\n\n\n\n<p>You can use htcacheclean utility once in a while to clean up disk cache. Here is a sample command that can be setup as a cron job to run automatically.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo htcacheclean -d30 -t -p \/var\/cache\/apache2\/mod_cache_disk -l 10M<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Browser-Side_Caching\"><\/span>2. Browser-Side Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this method, Apache uses the cache of client web browser to store static files. This reduces the number of requests sent to Apache server.<\/p>\n\n\n\n<p>For this solution, we only need mod_expires and mod_headers modules. So we enable them first.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo a2enmod expires<br>sudo a2enmod headers<\/pre>\n\n\n\n<p>Next, add the following lines to .htaccess file in your site&#8217;s root directory or your site&#8217;s virtual host configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;IfModule mod_expires.c&gt;<br>    ExpiresActive On<br>    ExpiresDefault \"access plus 1 day\"<br><br>    ExpiresByType image\/jpg \"access plus 1 month\"<br>    ExpiresByType image\/jpeg \"access plus 1 month\"<br>    ExpiresByType image\/png \"access plus 1 month\"<br>    ExpiresByType text\/css \"access plus 1 week\"<br>    ExpiresByType application\/javascript \"access plus 1 week\"<br><br>&lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>In the above code, we first check if mod_expires is enabled or not. If so, then we set the expiration for different types of files to different durations, using ExpiresByType directive.<\/p>\n\n\n\n<p>Save and close the file. Restart Apache server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Benefits_of_Caching\"><\/span>Benefits of Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Better Performance<\/strong> &#8211; When response data is cached, then in most cases, it is served from the cache itself, instead of the server processing the request. This allows applications and websites to deliver better response times. Consequently, it creates a smooth user experience.<\/li>\n\n\n\n<li><strong>Reduced Server Load<\/strong> &#8211; Since many server requests are directly processed by cache and not sent to backend server, this reduces the server load. In fact, for the same reason, it also reduces database load. This prevents performance bottlenecks and allows your site to handle more users.<\/li>\n\n\n\n<li><strong>Cost Saving<\/strong> &#8211; Since fewer number of requests are sent to backend server and database, but served from server cache itself, you don&#8217;t require expensive, high end infrastructure to run your website. Similarly, if you enable browser caching, then the client web browser will serve static content from browser&#8217;s cache instead of sending request to server. This will save network bandwidth resulting in data cost saving.<\/li>\n\n\n\n<li><strong>Scalable<\/strong> &#8211; Since you do not need high end infrastructure to run your website, you can easily scale it to handle high traffic. It also makes your website more resilient to handle sudden spike in traffic. It allows your site to give good performance during peak traffic.<\/li>\n\n\n\n<li><strong>Better User Experience<\/strong> &#8211; Since your website works faster, with lower server load, it improves user experience significantly.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Additional_Info\"><\/span>Additional Info<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Apache further provides two additional types of caching, which are used for very specific use cases.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>File Caching<\/strong> &#8211; In this case, Apache server will open the file descriptors of cached files and keep them available to respond quickly.<\/li>\n\n\n\n<li><strong>Key-Value caching<\/strong> &#8211; In this approach, Apache server will cache a shared object of key-value pairs. This is used for quick lookups such as during SSL authentication, where computing these values is time consuming.<\/li>\n<\/ol>\n\n\n\n<p>However, in most cases, HTTP caching is sufficient.<\/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 Apache caching works. We have learnt how both server side caching as well as browser side caching work. We have also learnt how to enable Apache cache for each of these cases. Depending on your requirement, you can use any of these solutions. If your caching service does not work well, you may also need to <a href=\"https:\/\/ubiq.co\/tech-blog\/disable-nginx-cache\/\">disable caching<\/a>.<\/p>\n\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-apache\/\">How to Increase File Upload Size in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-cache\/\">How to Disable Cache in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/apache-restrict-access-by-ip\/\">How to Restrict Access By IP in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.<\/p>\n","protected":false},"author":1,"featured_media":10477,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[137],"class_list":["post-10450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-cache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Configure Apache Cache in Ubuntu - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.\" \/>\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\/configure-apache-cache-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure Apache Cache in Ubuntu - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\" \/>\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-02-02T04:29:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-19T05:22:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"278\" \/>\n\t<meta property=\"og:image:height\" content=\"185\" \/>\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\/configure-apache-cache-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Configure Apache Cache in Ubuntu\",\"datePublished\":\"2026-02-02T04:29:23+00:00\",\"dateModified\":\"2026-03-19T05:22:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\"},\"wordCount\":1081,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1\",\"keywords\":[\"cache\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\",\"name\":\"How to Configure Apache Cache in Ubuntu - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1\",\"datePublished\":\"2026-02-02T04:29:23+00:00\",\"dateModified\":\"2026-03-19T05:22:27+00:00\",\"author\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.\",\"breadcrumb\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1\",\"width\":278,\"height\":185,\"caption\":\"configure apache cache\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ubiq.co\/tech-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure Apache Cache in Ubuntu\"}]},{\"@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 Configure Apache Cache in Ubuntu - Ubiq BI","description":"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.","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\/configure-apache-cache-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure Apache Cache in Ubuntu - Ubiq BI","og_description":"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.","og_url":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2026-02-02T04:29:23+00:00","article_modified_time":"2026-03-19T05:22:27+00:00","og_image":[{"width":278,"height":185,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.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\/configure-apache-cache-ubuntu\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Configure Apache Cache in Ubuntu","datePublished":"2026-02-02T04:29:23+00:00","dateModified":"2026-03-19T05:22:27+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/"},"wordCount":1081,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1","keywords":["cache"],"articleSection":["Apache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/","url":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/","name":"How to Configure Apache Cache in Ubuntu - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1","datePublished":"2026-02-02T04:29:23+00:00","dateModified":"2026-03-19T05:22:27+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Apache cache helps improve website speed and performance. Here is how to configure Apache cache in Ubuntu.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2026\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1","width":278,"height":185,"caption":"configure apache cache"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/configure-apache-cache-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Configure Apache Cache in Ubuntu"}]},{"@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\/02\/configure-apache-cache.jpg?fit=278%2C185&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-2Iy","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10450","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=10450"}],"version-history":[{"count":38,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10450\/revisions"}],"predecessor-version":[{"id":10720,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/10450\/revisions\/10720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/10477"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=10450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=10450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=10450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}