views:

60

answers:

1

Hi, we're in the process of trying to speed up the performance of our website by serving static content from a cookieless domain. That seems to be going well, but I have a new question:

I know that it's "static content" that we're talking about when serving it from a cookieless domain, but we also have static content being served by ASPX pages, specifically images. For example:

domain.com/resizeImages.aspx?src=images/image123.jpg&width=400&height=400

(Note: The above would be in an <img> tag, obviously.)

Pretty standard stuff, and although it's being served by managed code, it's still a static image.

So my question is: How can I serve the resizeImages.aspx image without ASP.NET setting a cookie on my browser? (At present it sets an ASPXANONYMOUS cookie.)

Thanks for any help!

+1  A: 

One of the things cookies are used for is to keep track of your session token, you could try disabling state for that page and see if it makes the cookie go away (though a custom handler would probably be a better solution).

R0MANARMY
Custom handler sped things up considerably, thanks!
Django Reinhardt