Jump to content

How can I setup a cookieless domain?


Recommended Posts

  • 3 weeks later...

Hi,

A cookie is attached to a domain.

If you are serving your assets(.css, .js etc.) over the same domain, it sends the cookie with the HTTP request which is a waste of bandwith.
 

What you can do is setup an alias domain, and point it towards the same forums, so your forums are accessable from both domains.
Then goto IPB -> General Configuration -> Storage Configuration

"Use custom url" - FIll in your alias domain for your forums

so instead of requesting mydomain.com/plugin.js, it will request alias.mydomain.com/plugin.js
Which will serve the same file, but from a different domain.

A CDN will also do the trick

 

Link to comment
Share on other sites

  • 2 weeks later...
3 hours ago, yacenty said:

What can we achive with such a trick?

.JS?

.CSS?

what about pictures from our gallery? can we do something like img.domain.com/ and put our gallery images from this subdomain?

To get best results you'd want to serve all resources  (images, JS and CSS) from a cookieless domain. Can see all options of items possible to change in ACP > System > Files > Storage Settings > Configuration 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...