Contents
How to use cookie-free domains in WordPress
- Create a subdomain, such as static.yourwebsite.com , which is where you will deliver all your static files from.
- Point your new subdomain to the /wp-content directory of your WordPress installation.
A cookie-free domain is a domain which doesn’t send a command to users’ browser to store cookies from the website. Usually, websites have static information, which may never change. Images, CSS files, JavaScript and etc.
How do I reduce HTTP requests on a page?
How to Make Fewer HTTP Requests to Your Website
- Grade your website’s performance to find the root problem.
- Check how many HTTP requests your site currently makes.
- Remove unnecessary images.
- Reduce the file size for the remaining images.
- Set your website to load JavaScript files asynchronously.
How do I reduce my site’s HTTP requests in WordPress?
Reduce HTTP requests on your WordPress site
- Combine CSS & Javascript.
- Minify code (HTML, CSS, Javascript)
- Enable lazy load.
- Remove unneeded images.
- Reduce image file size.
- Disable unneeded plugins.
- Reduce external scripts.
- Use a CDN.
How to use Cookie free domains in WordPress?
The following steps outline how to use cookie-free domains in WordPress: Create a subdomain, such as static.yourwebsite.com, which is where you will deliver all your static files from. Point your new subdomain to the /wp-content directory of your WordPress installation.
Now that your cookie domain and static content subdomain are set, you can begin delivering static content without the server setting an unnecessary cookie for static assets. You can also use a CDN to deliver your static assets and use cookie-free domains while at the same time benefiting from the features a CDN has to offer.
This is an easy alternative from moving and configuring your site to deliver static assets from a separate subdomain. With a CDN that strips cookies, you can easily deliver content without cookies while taking advantage of all the other benefits that a CDN has to offer.
What does the use Cookie free domain error mean?
Whilst using this tool, you may come across the Use cookie-free domain error. An HTTP cookie is data sent to user browsers by the web pages. This data will be stored in the browser while the user is browsing the website. In the next visit, the data will be sent to the server to remind user information. What is the cookie-free domain?