Developer forum

Forum » CMS - Standard features » Using the CDN for cookieless domains

Using the CDN for cookieless domains

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

According to this: https://developer.yahoo.com/performance/rules.html#cookie_free cookieless domains are recommended for static resources. I guess this makes sense and worth it if it is relatively easy to implement. So I was thinking about implementing that in DW using standard functionality. Here's what I came up:

1. Add a new domain to the site in IIS like images-customername.com for a domain like customername.com 

2. Set the main domain in Dynamicweb to only listen to listed domains so it skips images-customername.com using "The selected domains can only reach this website"

3. Configure a CDN and use images-customername.com as the host.

I did some testing and with this set up I get:

1. Browsing to images-customername.com directly redirects to customername.com (good)
2. Images are rewritten to images-customername.com (good)
3. Requests for images to images-customername.com are cookieless
4. Everything else seems to work as expected 

All good? Is this a good hack? Or did I just describe a good recipe for disaster? ;-)

Imar


Replies

 

You must be logged in to post in the forum