开发者

Cookieless sub domain

I have one dome name. www.abc.com

and i want to speedup all images an d static content from cookies domain.

what i require to do with that?

i want to create new sub domain with name static.abc.com but that time also cookie coming with both domain.

i am user dotnet panel for hosting.

technology is .n开发者_JAVA百科et


There are two ways to accomplish this. You could set the cookie for FQDN (fully-qualified domain name) of www.abc.com, but this would restrict the cookies to just www.abc.com. This may be stricter than you want.

The more common solution it to register a completely separate domain for cookieless hosting. This is used by many websites already.

  • Google uses gstatic.com
  • Facebook uses twimg.com (I think)
  • Yahoo uses yimg.com (I think)
  • EBay uses ebaystatic.com
  • etc.


When you create a cookie, set it's Domain property to ".abc.com", that way the cookie will be shared by both the www.abc.com and static.abc.com subdomains.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜