take ConverterJavaScriptHandler.cs for example: If there is only one user, the flow seems to work fine. However, there are more than one user at a time, so the flow seems to work wrong:
(1). User A requests "converter.ashx" first time: the cache["Ajax.NET.converter"] = null, so skipped the first block of codes and generates the scripts to response. And at the end of response, insert a CacheInfo with the current datetime into cache["Ajax.NET.converter"]. (2). User B requests "converter.ashx" first time: the cache["Ajax.NET.converter"] != null, but request.Headers["If-None-Match"] = null, and request.Headers["If-Modified-Since"] = null. that's to say, etag = null and modSince = null. Status code 304 will not be returned and continue to generates scripts to response. And importantly, as same as (1), new CacheInfo with a new LastModified datetime will be inserted to cache["Ajax.NET.converter"]. (3) User A requests "converter.ashx" for the second time. Our expectation is to return the 304 status code. but, user A's request.Headers["If-Modified-Since"] datetime does not equal to the one in the CacheInfo, which is inserted at (2). Status code 304 cannot be returned. ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info -~----------~----~----~----~------~----~------~--~---
