Skip to content

Bloggers Day Out

For Blogs and Businesses Online

  • About
  • WordPress Fixes
  • Search Console
  • Website Speed
  • Start a Blog
  • Blog SEO
  • Toggle search form

How to Use Cookie Free Domains [Updated 2023]

Posted on February 22, 2019April 27, 2023 By moumita 10 Comments on How to Use Cookie Free Domains [Updated 2023]

USE COOKIE FREE DOMAINS

Cookie-free domains are intended to serve static files like images, CSS files, scripts, and others. When a browser makes a request for static images, it sends cookies along with the request and thus the user has to waste time and bandwidth while transmitting those cookies.

So if we can create a subdomain and make it cookie-free and point all static resources to it then it can increase our website speed substantially.

Cloudflare adds its own security cookies and so you can never go cookieless while using a Cloudflare CDN.

Serving static files from the cookie-free domain have very low priority and low effect on-site load. So, you can entirely ignore it.

 

It consists of 3 steps:

 

Step 1: Creating a subdomain in CPanel

Subdomains are very easy to create.

Go to your hosting provider CPanel> Domain> Subdomain

Use Cookie Free Domains

Put static in place of subdomain and select your domain name and Create.

Your subdomain is created.

 

Step 2: Using CDN Enabler Plugin to point the static resources to a cookie-free subdomain

Install and activate the CDN Enabler Plugin.

Go to settings> Put your sub-domain in CDN URL

Put static/wp-content in Included Directories and SAVE changes.

Use Cookie Free Domains

You are done.

 

Step 3: Installing Auto-optimize plugin

This has always been a game-changer plugin for me.

I love the simplicity of its coding and settings.

  • Install and activate auto-optimize
  • Do the proper settings as shown

 

For JS, CSS, and HTML

 

For CSS

HTML

Leave the other settings as default.

Next, come to the images tab

 

Images

 

Leave the other tab settings as default.

GTmetrix results:

 

Check out:

15 Best Apps that pay you to play games

11 Issues Affecting your Site Speed

 

How to use cookie free domains?

Related Posts

  • How to Remove Query Strings from Static Resources
  • CloudFlare CDN Setup: Free CloudFlare DNS servers for Faster Website
Blog SEO, Blogging Tips, Website Speed

Post navigation

Previous Post: How to Reduce DNS Lookup for a WordPress Site
Next Post: How to Remove Query Strings from Static Resources

More Related Articles

How to make your New Blog Look Like a PRO Blogging for Beginners
7 Simple On Page SEO checklist you can never avoid Blog SEO
How Parsing a string in JavaScript works: Javascript Wait Blog SEO
How to Unblock Netflix, Hulu & More Best VPNs for Streaming: How to Unblock Netflix, Hulu & More in 2025 Blogging Tips
How to Start a Blog Professionally and Make Money from it Blogging for Beginners
CloudFlare CDN Setup: Free CloudFlare DNS servers for Faster Website Blog SEO

Comments (10) on “How to Use Cookie Free Domains [Updated 2023]”

  1. Aman says:
    May 24, 2019 at 8:40 am

    Nice

    Reply
  2. Syed says:
    June 17, 2019 at 12:26 am

    phpmyadmin showing error and my site images gone 🙁

    Reply
    1. moumita says:
      June 21, 2019 at 3:31 pm

      Hi Syed which method did you use?

      Reply
  3. jojo says:
    January 11, 2020 at 2:47 am

    And also can you explain what Add Expires headers are? and how to implement it on the wordpress website?

    Reply
    1. moumita says:
      February 1, 2020 at 9:10 am

      You can check at https://bloggersdayout.com/leverage-browser-cache/

      Reply
    2. Paul says:
      March 11, 2020 at 8:45 pm

      Just copy and paste the following code to your .htaccess file to resolve the Add Expires header issue.

      ExpiresActive on
      ExpiresDefault “access plus 6 months”
      # CSS
      ExpiresByType text/css “access plus 1 year”
      # HTML components (HTCs)
      ExpiresByType text/x-component “access plus 2 months”
      # HTML
      ExpiresByType text/html “access plus 6 months”
      # JavaScript
      ExpiresByType application/javascript “access plus 1 year”
      ExpiresByType application/x-javascript “access plus 1 year”
      # Manifest files
      ExpiresByType application/x-web-app-manifest+json “access plus 0 seconds”
      ExpiresByType text/cache-manifest “access plus 0 seconds”
      # Media
      ExpiresByType audio/ogg “access plus 1 year”
      ExpiresByType image/gif “access plus 1 year”
      ExpiresByType image/jpg “access plus 1 year”
      ExpiresByType image/jpeg “access plus 1 year”
      ExpiresByType image/png “access plus 1 year”
      ExpiresByType image/svg “access plus 1 year”
      ExpiresByType image/svg+xml “access plus 1 year”
      ExpiresByType video/mp4 “access plus 1 year”
      ExpiresByType video/ogg “access plus 1 year”
      ExpiresByType video/webm “access plus 1 year”
      ExpiresByType image/x-icon “access plus 1 year”
      ExpiresByType application/pdf “access plus 1 year”
      ExpiresByType application/x-shockwave-flash “access plus 1 year”
      # Web feeds
      ExpiresByType application/atom+xml “access plus 1 hour”
      ExpiresByType application/rss+xml “access plus 1 hour”
      # Web fonts
      ExpiresByType application/font-woff “access plus 1 year”
      ExpiresByType application/font-woff2 “access plus 1 year”
      ExpiresByType application/vnd.ms-fontobject “access plus 1 year”
      ExpiresByType application/x-font-ttf “access plus 1 year”
      ExpiresByType font/opentype “access plus 1 year”

      Reply
  4. Abdul Qadeer says:
    February 8, 2020 at 11:17 am

    Working 100% Thank you very much ..

    Reply
  5. Praveena says:
    March 29, 2020 at 6:58 am

    Hi Moumita, I followed your steps using W3 Cache and now my site images are gone. I stopped at SETTING UP 301 RE-DIRECTIONS FOR WORDPRESS IMAGES BY EDITING HTACCESS FILE -Step 6.

    Please help me.

    Reply
    1. moumita says:
      March 29, 2020 at 8:18 am

      Hi Praveena, did you get back the images after reverting back the W# steps?

      Reply
  6. Website design in Oakville says:
    January 14, 2021 at 3:39 am

    I like the valuable information you provide in your articles.

    I shall bookmark
    your blog and frequently check again here.
    I am quite sure I’ll learn
    lots of new stuff the following! Best of luck for the next!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow!

  • Pinterest
  • LinkedIn
  • YouTube
  • Instagram

Recent Posts

  • Codedex.io ~ Learn your codes for free
  • You’re Wasting Money on Ads Unless You Do This First
  • 5 VPN Myths Debunked: What You Really Need to Know About Online Privacy
  • VPN vs. Proxy vs. Tor: Which One Should You Use for Online Privacy?
  • Best VPNs for Streaming: How to Unblock Netflix, Hulu & More in 2025

Copyright © 2026 Bloggers Day Out.

Powered by PressBook Green WordPress theme