Re:250x Speed Improvements with Microcaching (and No New Code)
by simonw on Friday October 14, 2011 @04:43AM
(#3110481)
The problem with the expires argument is that you have to set it to a specific date, but I don't think you can be sure what timezone / clock setting the user's browser has - which means that it's pretty much impossible to reliably set a cookie that expires in a couple of seconds time.
Hopefully I'm wrong - I'd love to know if there's a workaround for that issue.
Hmmm, you're right about the IE issues (http://mrcoles.com/blog/cookies-max-age-vs-expires/). I haven't looked into how possible/hard expires would be in nginx config, but you could probably hack it in with http://wiki.nginx.org/HttpUserIdModule