Subdomain for cookies

Abraham54

Well-known member
In a former phpBB forum it was easy to create a subdomain for cookies.
I noticed, that my phpBB forum somewhat faster became after that.

I do not know how to implement this in XenForo 2.2.8.

Pingdom writes:
"When the browser requests a static image and sends cookies with the request, the server ignores the cookies.
These cookies are unnecessary network traffic. To workaround this problem, make sure that static components
are requested with cookie-free requests by creating a subdomain and hosting them there."
 
Solution
Pingdom is advising you to use a cookie-free subdomain (like static.example.com) to serve your JS and images. You'd need to set up a subdomain to serve these resources and then edit the externalDataPath and javascriptUrl config options: https://xenforo.com/docs/xf2/config/#data-and-script-locations

You would also want to update any style properties which point to static assets. Any improvement is likely to be fairly negligible, especially if you're using HTTP/2. And if you're not using HTTP/2, then enabling that would make a bigger difference than this ever would.
Pingdom is advising you to use a cookie-free subdomain (like static.example.com) to serve your JS and images. You'd need to set up a subdomain to serve these resources and then edit the externalDataPath and javascriptUrl config options: https://xenforo.com/docs/xf2/config/#data-and-script-locations

You would also want to update any style properties which point to static assets. Any improvement is likely to be fairly negligible, especially if you're using HTTP/2. And if you're not using HTTP/2, then enabling that would make a bigger difference than this ever would.
 
Solution
Top Bottom