{"id":202,"date":"2021-07-27T21:40:46","date_gmt":"2021-07-27T21:40:46","guid":{"rendered":"https:\/\/zynoo.com\/blog\/?p=202"},"modified":"2025-08-15T07:11:32","modified_gmt":"2025-08-15T07:11:32","slug":"add-expires-headers","status":"publish","type":"post","link":"https:\/\/zynoo.com\/blog\/add-expires-headers\/","title":{"rendered":"Add Expires Headers: Everything That You Need to Know"},"content":{"rendered":"\n<p><strong>Add Expires headers<\/strong> instruct the website whether to request a certain file from the server or to get it from the browser&#8217;s cache. The main point of <strong>add Expires Headers<\/strong> is to minimize not just the burden of downloads from the server, but also the number of HTTP requests for the server. <\/p>\n\n\n\n<p>When you visit a website, your browser is in control of connecting with the webserver to download all of the necessary files. The files are then compiled to produce the web page. As online pages grow more graphically and content-rich, more files are transmitted between your system and the webserver.<\/p>\n\n\n\n<p> In the past, you might have had an HTML file and a few photos to serve for your website, but many current websites may have 50+ files to transmit every page. The files alone can cause a significant increase in demand, but for each file, a request must be created, and even if the requests are only fractions of a second long, they can quickly pile up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_does_add_Expires_Headers_work\"><\/span>How does add Expires Headers work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The workings of <strong>add expires Headers<\/strong> are quite straightforward. They inform the browser how long to keep a file in the cache so that subsequent page views and visits do not require the file to be downloaded again. <\/p>\n\n\n\n<p>You are correct in assuming that Expires Headers do not enhance page performance for a first-time visitor since this visitor must download all of the assets for the first time. The use of <strong>add Expires Headers<\/strong> aids in the reduction of load times for returning visitors.<\/p>\n\n\n\n<p>Expires headers can be placed on particular files or even file types. When the browser visits the website, it may see when the specified file types were last downloaded. If you haven&#8217;t visited the site in a while, it will download the most recent version from the web server and display them from the cache.<\/p>\n\n\n\n<p>The aim is to establish late expiry periods for goods on your website that don&#8217;t change (logo, colors, etc). For items that change often, set short expiry durations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_the_significance_of_this_add_Expires_Headers\"><\/span>What is the significance of this add Expires Headers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Expires Headers are useful for reducing HTTP requests and therefore the time it takes the server to interact with the browser. It also enables your users to reuse browser cache files, reducing the number of items they must download. It speeds up the loading of your site (after the initial request) and allows your server to handle more requests at once.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Role_Do_Expiration_Headers_Play_In-Browser_Caching\"><\/span>What Role Do Expiration Headers Play In-Browser Caching?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>According to the regulations in the expiry headers, the browser cache saves resources. When a browser loads a website, these rules govern how the resources are used. So, if a resource&#8217;s age hasn&#8217;t expired, it will be loaded from the browser cache. If not, your computer will request it from the server once more.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_happens_though_when_a_computer_requests_a_site_for_the_first_time\"><\/span>What happens, though, when a computer requests a site for the first time?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this instance, the whole site&#8217;s resources are downloaded straight from the server.<\/p>\n\n\n\n<p>The browser will check its cache for non-expired resources after the second time and use them to save bandwidth and time.<\/p>\n\n\n\n<p>The data is then transmitted through HTTP headers from the server to the browser. HTTP headers are used to convey additional information between your computer and the server.<\/p>\n\n\n\n<p>Cache-Control is another essential idea that allows all of this to happen.<\/p>\n\n\n\n<p>You may create browser-caching policies that function on both the server and client-side with Cache-Control.<\/p>\n\n\n\n<p>The expiration time provided in the HTTP header is done via Cache-Control, Caching-Control, in summary, is a superior approach to implement browser cache since it bypasses browser-based cache.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Add_Expires_Headers_to_WordPress\"><\/span>Add Expires Headers to WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Manually Add Expires Headers<\/strong><\/li><li>Apache Server<\/li><\/ul>\n\n\n\n<p>The .htaccess file is one of the simplest ways to add expired headers to a WordPress site running on an Apache server. You can use cPanel to get to it.<\/p>\n\n\n\n<p>To begin, go onto your cPanel account. The File Manager option may be found there. After that, go to the File Manager and choose the &#8220;public Html&#8221; folder. Once you&#8217;ve entered the folder, look for the .htaccess file. Whether you still can&#8217;t see it, check to see if the hidden files are set to &#8220;display.&#8221; Open the file by right-clicking it and selecting &#8220;edit.&#8221; Now you must save the file and add the following code to it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-cyan-blue-color\">&lt;IfModule mod_expires.c&gt;\n  ExpiresActive On\n  # Images\n  ExpiresByType image\/jpeg \"access plus 1 year\"\n  ExpiresByType image\/gif \"access plus 1 year\"\n  ExpiresByType image\/png \"access plus 1 year\"\n  ExpiresByType image\/webp \"access plus 1 year\"\n  ExpiresByType image\/svg+xml \"access plus 1 year\"\n  ExpiresByType image\/x-icon \"access plus 1 year\"\n  # Video\n  ExpiresByType video\/mp4 \"access plus 1 year\"\n  ExpiresByType video\/mpeg \"access plus 1 year\"\n  # CSS, JavaScript\n  ExpiresByType text\/css \"access plus 1 month\"\n  ExpiresByType text\/javascript \"access plus 1 month\"\n  ExpiresByType application\/javascript \"access plus 1 month\"\n  # Others\n  ExpiresByType application\/pdf \"access plus 1 month\"\n  ExpiresByType application\/x-shockwave-flash \"access plus 1 month\"\n&lt;\/IfModule&gt;\n<\/span><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Using a Plugin to Add Expires Headers<\/strong><\/li><\/ul>\n\n\n\n<p>Adding expires headers manually takes some technical knowledge. If you don&#8217;t have the technical know-how or are in a rush to activate browser caching, you may utilize plugins instead.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Using Hummingbird plugin<\/strong><\/li><\/ul>\n\n\n\n<p>The first step is to navigate to the dashboard of your <a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress<\/a> site. From there, go to &#8220;Plugins&#8221; &gt;&gt; &#8220;Add New.&#8221;<\/p>\n\n\n\n<p>Then, in the upper right corner, put \u201cHummingbird\u201d into the search box. After that, look for the plugin. To install it, click &#8220;Install Now.&#8221;<\/p>\n\n\n\n<p>After you&#8217;ve activated the plugin, it&#8217;ll appear in the WordPress dashboard menu. Select \u201cDashboard\u201d and then \u201cCaching\u201d after clicking on it.<\/p>\n\n\n\n<p>When you arrive, you will be presented with four alternatives. To continue, click on browser caching.<\/p>\n\n\n\n<p>The status will be displayed at the top. You can also use Hummingbird to modify your browser cache if you scroll down. You&#8217;ll find a variety of configuration choices here. You have the option of using Apache, NGINX, IIS, or Cloudflare as your server.<\/p>\n\n\n\n<p>After that, you may specify an expiry time for all file types or specific ones. Finally, you may use the manual method to manually add expired headers. The code is generated manually based on your selections.<\/p>\n\n\n\n<p>After you&#8217;ve set everything up, click &#8220;Activate&#8221; to enable browser caching with expired headers.<\/p>\n\n\n\n<p>Also Read: ERR_SSL<a href=\"https:\/\/zynoo.com\/blog\/err_ssl_version_or_cipher_mismatch\/\">https:\/\/zynoo.com\/blog\/err_ssl_version_or_cipher_mismatch\/<\/a>_VERSION_OR_CIPHER_MISMATCH<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Add Expired headers are beneficial to page loading performance. Even if it won&#8217;t make a significant difference in your site&#8217;s performance, the method is sure to improve the user experience. For this, you&#8217;ll need to add expires header in the appropriate place; if you don&#8217;t, your site will eventually slow down.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add Expires headers instruct the website whether to request a certain file from the server or to get it from the browser&#8217;s&#8230;<\/p>\n","protected":false},"author":1,"featured_media":207,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[31,14],"class_list":["post-202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-add-expires-headers","tag-how-to"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Add Expires Headers: Everything That You Need to Know<\/title>\n<meta name=\"description\" content=\"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zynoo.com\/blog\/add-expires-headers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Expires Headers: Everything That You Need to Know\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zynoo.com\/blog\/add-expires-headers\/\" \/>\n<meta property=\"og:site_name\" content=\"Zynoo Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-27T21:40:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-15T07:11:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1185\" \/>\n\t<meta property=\"og:image:height\" content=\"592\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jamie Collins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Add Expires Headers: Everything That You Need to Know\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jamie Collins\" \/>\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\":\"TechArticle\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/\"},\"author\":{\"name\":\"Jamie Collins\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#\\\/schema\\\/person\\\/075b85b8be75fb370da34891a96e7eba\"},\"headline\":\"Add Expires Headers: Everything That You Need to Know\",\"datePublished\":\"2021-07-27T21:40:46+00:00\",\"dateModified\":\"2025-08-15T07:11:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/\"},\"wordCount\":1032,\"publisher\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/add-expires-headers.jpg\",\"keywords\":[\"add expires headers\",\"how to\"],\"articleSection\":[\"Web Hosting Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/\",\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/\",\"name\":\"Add Expires Headers: Everything That You Need to Know\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/add-expires-headers.jpg\",\"datePublished\":\"2021-07-27T21:40:46+00:00\",\"dateModified\":\"2025-08-15T07:11:32+00:00\",\"description\":\"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/add-expires-headers.jpg\",\"contentUrl\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/add-expires-headers.jpg\",\"width\":1185,\"height\":592,\"caption\":\"zynoo blog post bg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/add-expires-headers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Expires Headers: Everything That You Need to Know\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/\",\"name\":\"Zynoo Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#organization\",\"name\":\"Zynoo.com\",\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/logo.png\",\"width\":149,\"height\":31,\"caption\":\"Zynoo.com\"},\"image\":{\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/#\\\/schema\\\/person\\\/075b85b8be75fb370da34891a96e7eba\",\"name\":\"Jamie Collins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g\",\"caption\":\"Jamie Collins\"},\"description\":\"Jamie Collins is a content writer with over 5+ years of experience in web hosting. He specializes in creating simple, practical guides that help readers understand hosting and make smarter online choices.\",\"sameAs\":[\"https:\\\/\\\/zynoo.com\\\/blog\\\/\"],\"url\":\"https:\\\/\\\/zynoo.com\\\/blog\\\/author\\\/willy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Add Expires Headers: Everything That You Need to Know","description":"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.","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:\/\/zynoo.com\/blog\/add-expires-headers\/","og_locale":"en_US","og_type":"article","og_title":"Add Expires Headers: Everything That You Need to Know","og_description":"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.","og_url":"https:\/\/zynoo.com\/blog\/add-expires-headers\/","og_site_name":"Zynoo Blog","article_published_time":"2021-07-27T21:40:46+00:00","article_modified_time":"2025-08-15T07:11:32+00:00","og_image":[{"width":1185,"height":592,"url":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","type":"image\/jpeg"}],"author":"Jamie Collins","twitter_card":"summary_large_image","twitter_title":"Add Expires Headers: Everything That You Need to Know","twitter_description":"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.","twitter_image":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","twitter_misc":{"Written by":"Jamie Collins","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#article","isPartOf":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/"},"author":{"name":"Jamie Collins","@id":"https:\/\/zynoo.com\/blog\/#\/schema\/person\/075b85b8be75fb370da34891a96e7eba"},"headline":"Add Expires Headers: Everything That You Need to Know","datePublished":"2021-07-27T21:40:46+00:00","dateModified":"2025-08-15T07:11:32+00:00","mainEntityOfPage":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/"},"wordCount":1032,"publisher":{"@id":"https:\/\/zynoo.com\/blog\/#organization"},"image":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#primaryimage"},"thumbnailUrl":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","keywords":["add expires headers","how to"],"articleSection":["Web Hosting Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/","url":"https:\/\/zynoo.com\/blog\/add-expires-headers\/","name":"Add Expires Headers: Everything That You Need to Know","isPartOf":{"@id":"https:\/\/zynoo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#primaryimage"},"image":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#primaryimage"},"thumbnailUrl":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","datePublished":"2021-07-27T21:40:46+00:00","dateModified":"2025-08-15T07:11:32+00:00","description":"Learn how to use the .htaccess file on Apache, the config file on Nginx, or a WordPress plugin to add expires headers.","breadcrumb":{"@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zynoo.com\/blog\/add-expires-headers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#primaryimage","url":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","contentUrl":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2021\/07\/add-expires-headers.jpg","width":1185,"height":592,"caption":"zynoo blog post bg"},{"@type":"BreadcrumbList","@id":"https:\/\/zynoo.com\/blog\/add-expires-headers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zynoo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add Expires Headers: Everything That You Need to Know"}]},{"@type":"WebSite","@id":"https:\/\/zynoo.com\/blog\/#website","url":"https:\/\/zynoo.com\/blog\/","name":"Zynoo Blog","description":"","publisher":{"@id":"https:\/\/zynoo.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zynoo.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zynoo.com\/blog\/#organization","name":"Zynoo.com","url":"https:\/\/zynoo.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zynoo.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2025\/08\/logo.png","contentUrl":"https:\/\/zynoo.com\/blog\/wp-content\/uploads\/2025\/08\/logo.png","width":149,"height":31,"caption":"Zynoo.com"},"image":{"@id":"https:\/\/zynoo.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zynoo.com\/blog\/#\/schema\/person\/075b85b8be75fb370da34891a96e7eba","name":"Jamie Collins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c9359158623ddee86ac8561e84de70f78b722c1d9018dd61d611ae19118a2d76?s=96&d=mm&r=g","caption":"Jamie Collins"},"description":"Jamie Collins is a content writer with over 5+ years of experience in web hosting. He specializes in creating simple, practical guides that help readers understand hosting and make smarter online choices.","sameAs":["https:\/\/zynoo.com\/blog\/"],"url":"https:\/\/zynoo.com\/blog\/author\/willy\/"}]}},"_links":{"self":[{"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":0,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/media\/207"}],"wp:attachment":[{"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zynoo.com\/blog\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}