Using “cookieless” domain for serving static assets is common recommendation performance tools give. The reasoning being that cookies do nothing at all for such files, but still consume resources.
It is, however, not something WP can handle for following reasons:
- WordPress does not control domain. DNS points domain to specific server’s IP address, where WP installation (configured accordingly) responds to requests.
- WordPress does not work without cookies. They are necessary for authentication and without them you wouldn’t be able to access WP administration area.
So creating such domain is a task that is both separate from WordPress and more so it should be isolated from WP installation, or it will add cookies and you are back to original issue.
Related Posts:
- Can you run wordpress with multiple domains at the same time (not multisite)?
- How to share cookies and sessions between domain and subdomain?
- How to copy an existing (custom themed) site to a new domain
- How do I change site url to my new domain?
- Transfer of wordpress site from one domain and server to another domain and server
- WordPress live site images not displaying
- Setting two top level domains for multisite
- How to log in after domain has been transferred
- How can I use a separate domain for URL shortening?
- How do I make my particular WordPress public?
- CNAME site attempts to load files over HTTP instead of HTTPS
- Can WordPress change links automatically?
- Can I have the same wordpress site under different url?
- Redirecting Primary domain to a WordPress Installation in the Subdirectory without changing URL
- WordPress keeps redirecting me to online site [closed]
- Remove website URL from wordpress website
- WordPress domain configuration on a different server
- Multiple domains showing same content
- Change wp_sanitize function?
- How to use a .edu domain with WordPress?
- Inherited website changing CSS/JS path
- looking for a hosting company for wordpress [closed]
- How long to keep old domain for 301 redirects after moving WordPress?
- Moving Domain.wordpress.com to a new domain
- Substitute original WordPress url by another domain name
- Godaddy masked redirection to WordPress blog
- Move domain for WordPress site
- Can I start to build a site before choosing/registering its domain?
- Replace .wordpress.com url with a domain name
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- Problem with Web-Alias and WooCommerce
- Access web server in local LAN using domain name instead of IP
- How do I change the wpstaging.com domain to new domain without damaging the website?
- COOKIE_DOMAIN chaos
- Deleting /wp from my website URL
- Can I start to develop my website on WordPress.org before purchasing my web hosting?
- What is the best way to strip the domain from all links and references?
- How do I move my primary domain out of the public_html folder?
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- Domain masking and wordpress
- How to run wordpress site on “mysitewp.com”?
- Move site to subdomain
- WordPress Update E-Mail shows IP instead of Domain
- Hosting my own site – pros/cons?
- Change logo depending on domain
- domain name in hebrew (punycode)
- White Homepage after Domain Name Change
- Mirror site as the definitive version?
- WordPress on Azure as Subdirectory
- is_user_logged_in() not working after domain change
- Changing domain for site running on raspberry pi server
- Cannot login to site after domain .COM address pointed at .ORG
- What paths does WordPress use for itself on a domain?
- How can I make my domain work with my site?
- Changing the site URL
- Use domain with existing WordPress install
- Keep the domain name and change to wordpress [closed]
- How do I transfer my own domain name to WordPress [closed]
- how can i transfer my existing website to new wordpress website maintain my domain!
- Can I create a top level TLD? (.michael for instance)
- Post page appears without images + formatting
- Recover old website domain
- Multiple domains for one wordpress instance
- Where does Chrome store cookies?
- javascript set cookie with expire time
- How do I set/unset a cookie with jQuery?
- Unset cookies php
- How to detect a user that is not logged in
- How to point my domain to a WordPress install in a sub-directory?
- Get wordpress stored cookies for custom login
- Using a nonce in a Custom Login Form
- Changing WordPress blog name and web address
- Subdomain and subdirectories together in one installation
- Serving Cookies From A Different Domain or Sub-Domain
- Redirecting to old domain, tried everything, nothing works
- Auth cookie value security risk?
- Why is my staging subdomain not sending wordpress_logged_in cookies?
- WordPress cookies
- Changing domain
- Cookie signed verification failed – wp-saving-post
- What are your thoughts on overriding the PHP builtin setcookie() function to control whether or not WP creates cookies
- How to run a function in every page, every device
- How to change WordPress cookies to be session-only
- Best method to show modal only once
- Cookie with referral URL [closed]
- Multisite cookies are being shared across domains unwanted
- Log in user using WordPress REST API
- Setting a Custom Cookie in WordPress only for Logged In Customer/User (non-admin)
- Authentication between two different sites using the WordPress login cookie
- multiple domains point to same site on WP-MU
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- Checking for cookies returns correct result only inside Elementor Editor
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- Restrict certain roles registrations by domain
- Use WP_Query Data In Cookie
- Opening protected page with cookie?
- Language switcher for subdomains
- WordPress internationalization + domains
- Sidebar not visible after changing to new domain
- Change URL when visiting wordpress site