{"id":27423,"date":"2018-07-06T06:08:17","date_gmt":"2018-07-06T11:08:17","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27423"},"modified":"2022-12-19T06:49:09","modified_gmt":"2022-12-19T12:49:09","slug":"serve-static-content-from-a-cookieless-domain","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/","title":{"rendered":"Serve Static Content From a Cookieless Domain"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-27442 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg\" alt=\"serve static content from a cookieless domain\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28626\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fixing-serve-static-content-from-a-cookieless-domain.jpg\" alt=\"fixing serve static content from a cookieless domain\" width=\"150\" height=\"153\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fixing-serve-static-content-from-a-cookieless-domain.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fixing-serve-static-content-from-a-cookieless-domain-147x150.jpg 147w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>We&#8217;ll show you how to fix<strong> serve static content from a cookieless domain<\/strong> error. When using a website analyzer tool such as PageSpeed Insights, GTMetrix, Pingdom, or Uptrends, a warning will often appear that says <strong>&#8220;Serve Static Content From a Cookieless Domain&#8221;<\/strong>. What this means is that your web server is setting cookies \u00a0&#8211; this causes all future HTTP requests to include this cookie, creating unwanted network traffic. This in turn only slows down the speed of your website when a user tries to access it. If you need your website to be as fast as possible, switching to a cookieless domain is the way to go. A cookieless domain does not accept any cookies from any browsers, keeping the overall network traffic lower. The goal is to serve all static content &#8211; such as images, javascript, CSS, and more &#8211; all through a static, cookieless domain, which helps improve the speed at which these resources are downloaded.<\/p>\n<p><!--more--><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-27444 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/how-to-fix-serve-static-content-from-a-cookieless-domain.jpg\" alt=\"how to serve static content from a cookieless domain\" width=\"500\" height=\"224\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/how-to-fix-serve-static-content-from-a-cookieless-domain.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/how-to-fix-serve-static-content-from-a-cookieless-domain-150x67.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/how-to-fix-serve-static-content-from-a-cookieless-domain-300x134.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>In this tutorial, we will cover how to set up a cookieless domain in order to resolve this warning message. There are two ways to create a cookieless domain: use a new domain to serve static content, or use a subdomain\u00a0to serve the static content. Using a subdomain is the most popular choice, since it doesn&#8217;t require the purchase of a new domain name &#8211; this is the method we will be covering today. However, using a new domain instead of a subdomain can be made to work easily enough with this tutorial. This tutorial discusses how to set up a cookieless domain on a Linux-based server.<\/p>\n<p><strong>NOTE:\u00a0<\/strong>You\u00a0<strong>cannot<\/strong> use a subdomain to serve static content if your main website is setting cookies by using the root of your domain instead of the &#8216;www&#8217; prefix. If your site is setting them by using yourdomain.com instead of www.yourdomain.com, then using a subdomain to serve static content\u00a0<strong>is not possible<\/strong>. This is due to the fact that using it on the root domain also applies it to all subdomains.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e7477fe317a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e7477fe317a\"  aria-label=\"Toggle\" \/><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:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#1-Create-a-Subdomain\" >1. Create a Subdomain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#2-Creating-a-Subdomain-in-Apache\" >2. Creating a Subdomain in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#3-Creating-a-Subdomain-in-NGINX\" >3. Creating a Subdomain in NGINX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#4-Configure-your-DNS-settings\" >4. Configure your DNS settings.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#5-Set-up-your-htaccess-file\" >5.\u00a0 Set up your .htaccess file.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#6-Configure-your-website\" >6. Configure your website.<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Create-a-Subdomain\"><\/span>1. Create a Subdomain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Creating a subdomain can be done using several methods. If you have a control panel such as cPanel or DirectAdmin, there are utilities built in to create subdomains easily and quickly. Use the built-in subdomain creation page to create a subdomain named &#8216;static&#8217;. When completed, your subdomain should look like this:<\/p>\n<pre>static.yourdomain.com<\/pre>\n<p>Once done, try and access your new subdomain by entering the complete URL in a web browser. You should be greeted with a fully white page.<\/p>\n<p>If you do not have a control panel to create your subdomain with, that isn&#8217;t a problem &#8211; simply follow these next couple of steps.\u00a0To create a subdomain without a control panel, will need to edit your website&#8217;s configuration file. The location of the configuration file you need to edit or create depends on which web server software package you use &#8211; in this tutorial, we will cover both NGINX and Apache. First things first, however, you need to create a new folder that will contain all of the website files on the new subdomain. \/var\/www\/ is a good place to create a new folder &#8211; name it &#8216;static.yourdomain.com&#8217;.\u00a0<strong>NOTE:\u00a0<\/strong>You <strong>will<\/strong> need to place your static files from your website into this folder. Without this,\u00a0<strong>your static content cannot be loaded from the static subdomain<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2-Creating-a-Subdomain-in-Apache\"><\/span>2. Creating a Subdomain in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a subdomain using Apache, we only need to add a few extra lines to the existing website configuration. The location of the configuration file depends on what Linux distribution you are running. Here is the file path for RedHat-based systems:<\/p>\n<pre>\/etc\/httpd\/conf.d\/static.yourdomain.conf<\/pre>\n<p>and for Debian-based systems:<\/p>\n<pre>\/etc\/httpd\/sites-available\/static.yourdomain.conf<\/pre>\n<p>Open your website&#8217;s configuration file using your preferred text editor, and add the following paragraph to the end of the file:<\/p>\n<pre class=\"code-pre \">&lt;VirtualHost *:80&gt;\r\nServerName static.yourdomain.com\r\nDocumentRoot \/var\/www\/static.yourdomain.com\r\nErrorLog \/your\/error\/log\/path\r\nCustomLog \/your\/requested\/log\/path combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Replace &#8216;yourdomain&#8217; with your domain name, and point the paths to their respective directories on the system. When this is done, you can then restart Apache with the following command:<\/p>\n<pre>service httpd restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Creating-a-Subdomain-in-NGINX\"><\/span>3. Creating a Subdomain in NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With NGINX, we need to create an entire configuration file for this new subdomain. So, create and open a new file in \/etc\/nginx\/sites-available using your preferred text editor, and call the file &#8216;static.yourdomain.com.conf&#8217;. Then, insert the following into your new file. (Be sure to change &#8216;yourdomain&#8217; to your domain name):<\/p>\n<pre class=\"code-pre \">server {\r\n        listen 80;\r\n        \r\n        server_name static.yourdomain.com;\r\n\r\n        log_not_found off;\u00a0\r\n        error_log off;\u00a0\r\n        fastcgi_hide_header Set-Cookie;\r\n\r\n        root \/var\/www\/static.yourdomain.com;\r\n        location \/ {\u00a0if ($request_filename ~ \"\\.(css|js|jpg|jpeg|gif|ico|png|bmp|pict|csv|doc|pdf|pls|ppt|tif|tiff|eps|ejs|swf|midi|mid|ttf|eot|woff|otf|svg|svgz|webp|docx|xlsx|xls|pptx|ps|class|jar|woff2|less|scss)$\") {\u00a0\r\n                add_header Pragma \"public\";\u00a0add_header Cache-Control \"public, must-revalidate, proxy-revalidate\";\u00a0add_header Access-Control-Allow-Origin *;\u00a0access_log off;\u00a0expires 1M;\u00a0break;\r\n                   }\r\n                return 302 http:\/\/www.yourdomain.com$request_uri;\r\n        }\r\n}<\/pre>\n<p>Now save this file, and exit your text editor. The next step is to create a symlink (a symbolic link) to enable this configuration in NGINX. You can do that with the following line:<\/p>\n<pre class=\"code-pre \">ln -s \/etc\/sites-available\/static.yourdomain.com.conf \/etc\/sites-enabled\/static.yourdomain.com.conf<\/pre>\n<p>Now restart NGINX for the changes to take effect:<\/p>\n<pre>service nginx restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Configure-your-DNS-settings\"><\/span>4. Configure your DNS settings.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that a subdomain has been successfully set up, we now need to set up our DNS records to use this subdomain as an alias. We will do this using a CNAME record. Using the client-side tools that your hosting provider provides, you can easily create a CNAME record that points your subdomain to your main domain. Or, if you don&#8217;t have a control panel for your server, you can change your zone files manually. You need to add the line to your zone file that creates an alias to your main domain. This is how it should look:<\/p>\n<pre>static.yourdomain.com. IN CNAME yourdomain.com.<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Set-up-your-htaccess-file\"><\/span>5.\u00a0 Set up your .htaccess file.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You need to add an extra line to your .htaccess file found in the root of your cookieless domain. So, using your preferred text editor, open .htaccess in the folder where your current website resides, and add this line to the end:<\/p>\n<pre class=\"code\">CookieDomain www.yourdomain.com<\/pre>\n<p>This\u00a0is\u00a0where\u00a0the\u00a0&#8216;www&#8217;\u00a0prefix\u00a0is\u00a0important. Without it, the static subdomain can&#8217;t function.<\/p>\n<p><strong>NOTE:\u00a0<\/strong>This <strong>only<\/strong> works for Apache. If you&#8217;re using NGINX, the config file from earlier is made to only serve static content, meaning that it can never accept cookies.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Configure-your-website\"><\/span>6. Configure your website.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that the main setup is done, you now need to change the references in your site to point to the new static subdomain. This is where it will get its resources from now on. For example, you would change this:<\/p>\n<pre>&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"\/css\/main.css\"&gt;<\/pre>\n<p>to this:<\/p>\n<pre>&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"http:\/\/static.yourdomain.com\/css\/main.css\"&gt;<\/pre>\n<p>Now, when you try and access your site, it will load the static content from the subdomain instead of the main domain. This has the added benefit of simultaneous downloads of the site&#8217;s content when a user accesses your site.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27443\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fix-serve-static-content-from-a-cookieless-domain.jpg\" alt=\"fix serve static content from a cookieless domain\" width=\"150\" height=\"153\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fix-serve-static-content-from-a-cookieless-domain.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/fix-serve-static-content-from-a-cookieless-domain-147x150.jpg 147w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>Of course, if you have a high-speed VPS hosting plan with us, you don&#8217;t need to bother fixing the <strong>serve static content from a cookieless domain<\/strong>,\u00a0 Just simply ask our expert team of Linux administrators, who will set up a static subdomain and a cookieless domain for you right away. They&#8217;re available 24\/7 and can help with any questions or requests that you may have.<\/p>\n<p>If you liked this tutorial on how to serve static content from a cookieless domain, feel free to share this post using the social media shortcuts, or simply leave a comment below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you how to fix serve static content from a cookieless domain error. When using a website analyzer tool &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Serve Static Content From a Cookieless Domain\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#more-27423\" aria-label=\"Read more about Serve Static Content From a Cookieless Domain\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27442,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[1729],"class_list":["post-27423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-cookieless-domain","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Serve Static Content From a Cookieless Domain | RoseHosting<\/title>\n<meta name=\"description\" content=\"Serve Static Content From a Cookieless Domain | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Serve Static Content From a Cookieless Domain\" \/>\n<meta property=\"og:description\" content=\"Serve Static Content From a Cookieless Domain | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-06T11:08:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-19T12:49:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Serve Static Content From a Cookieless Domain\",\"datePublished\":\"2018-07-06T11:08:17+00:00\",\"dateModified\":\"2022-12-19T12:49:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/\"},\"wordCount\":1160,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/serve-static-content-from-a-cookieless-domain.jpg\",\"keywords\":[\"Cookieless Domain\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/\",\"name\":\"Serve Static Content From a Cookieless Domain | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/serve-static-content-from-a-cookieless-domain.jpg\",\"datePublished\":\"2018-07-06T11:08:17+00:00\",\"dateModified\":\"2022-12-19T12:49:09+00:00\",\"description\":\"Serve Static Content From a Cookieless Domain | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/serve-static-content-from-a-cookieless-domain.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/serve-static-content-from-a-cookieless-domain.jpg\",\"width\":742,\"height\":371,\"caption\":\"serve static content from a cookieless domain\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/serve-static-content-from-a-cookieless-domain\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Serve Static Content From a Cookieless Domain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Serve Static Content From a Cookieless Domain | RoseHosting","description":"Serve Static Content From a Cookieless Domain | RoseHosting","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:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/","og_locale":"en_US","og_type":"article","og_title":"Serve Static Content From a Cookieless Domain","og_description":"Serve Static Content From a Cookieless Domain | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-07-06T11:08:17+00:00","article_modified_time":"2022-12-19T12:49:09+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Serve Static Content From a Cookieless Domain","datePublished":"2018-07-06T11:08:17+00:00","dateModified":"2022-12-19T12:49:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/"},"wordCount":1160,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg","keywords":["Cookieless Domain"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/","url":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/","name":"Serve Static Content From a Cookieless Domain | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg","datePublished":"2018-07-06T11:08:17+00:00","dateModified":"2022-12-19T12:49:09+00:00","description":"Serve Static Content From a Cookieless Domain | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/serve-static-content-from-a-cookieless-domain.jpg","width":742,"height":371,"caption":"serve static content from a cookieless domain"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/serve-static-content-from-a-cookieless-domain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Serve Static Content From a Cookieless Domain"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27423"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27423\/revisions"}],"predecessor-version":[{"id":44408,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27423\/revisions\/44408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27442"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}