[FIXED] [V0.8.2] Vary: * headers sent from coolite.axd

  1. #1

    [FIXED] [V0.8.2] Vary: * headers sent from coolite.axd

    Hi,

    Not sure if this is a bug and whether my workaround is a good one, but I've had an issue with requests for resources not being cached (in release mode too). For example, requests for sprites which should of been cached are being requested and downloaded (Http 200 not 304) on mouseover events.

    I made a quick mod to ResourceManager.cs to exclude the vary: * header but not sure whether this is the right thing to do or not, it certainly fixes the issue as can been seen in my fiddler logs. Anyone have a comment on this?

    
                  HttpCachePolicy cache = context.Response.Cache;
    
                    cache.SetLastModified(new DateTime(ResourceManager.GetAssemblyTime(typeof(ResourceManager).Assembly)));
    
    // begin mods
                    cache.SetOmitVaryStar(true);
                    cache.SetVaryByCustom("v");
    
                    //cache.VaryByParams["v"] = true;
    // end of mods
    
                    cache.SetExpires(DateTime.UtcNow.AddYears(1));
                    cache.SetValidUntilExpires(true);
                    cache.SetCacheability(HttpCacheability.Public);
  2. #2

    RE: [FIXED] [V0.8.2] Vary: * headers sent from coolite.axd

    Hi,

    Thanks for pointing out the defect. We added 'cache.SetOmitVaryStar(true);' recently.


Similar Threads

  1. Replies: 0
    Last Post: Jan 27, 2009, 7:50 PM
  2. [FIXED] [V0.8.0] Bug in Coolite.AjaxEvent
    By abertram in forum Bugs
    Replies: 5
    Last Post: Jan 23, 2009, 10:52 AM
  3. Replies: 2
    Last Post: Jan 21, 2009, 2:18 PM
  4. js files for coolite and ext with javadoc headers?
    By pkellner in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 25, 2008, 3:06 PM
  5. Replies: 3
    Last Post: Sep 19, 2008, 6:12 PM

Posting Permissions