[CLOSED] Caching issue when forms authentication is enabled

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Caching issue when forms authentication is enabled

    In IE, there is a caching issue with the embedded resources (coolite axd files) if you have Forms Authentication enabled (the axd files get pulled down with every request, and do not go into the browser cache).

    Setting cleanResourceUrl="false" fixes the caching issue, but then the files do not get compressed.

    Please help. Thanks.
  2. #2

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Hi,

    Does it occur under IE only or under other browsers as well? How you detect that files are not cached (just want to use method for reproducing the issue)?

    I have tested under FF and FireBug is showing that files are cached (I got 304 (Not modified) and files are restored from local browser's cache )
  3. #3

    RE: [CLOSED] Caching issue when forms authentication is enabled



    Hi vladimir,


    It is an IE only issue when Forms authentication is enabled. I have been using Fiddler to determine the files are not being cached (result is always 200 not 304).


    Please investigate using IE8 and Fiddler. Thanks.

  4. #4

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Hi,

    Can you update from SVN, rebuild and test again? Thanks
  5. #5

    RE: [CLOSED] Caching issue when forms authentication is enabled



    I think that fixed it. Thanks!

  6. #6

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Hi there,

    I am using Coolite.Ext.Web the latest version 0.8.2.24371 and some images are not being cached as you can see with the Fiddler inspector below. I have tested with IE7, but I suspect with Firefox it also happens.
    As jskibo pointed out, it does not happen when using CleanResourceUrl="false".

    #    Result    Protocol    Host    URL    Body    Caching    Content-Type    Process    Comments    Custom    
    0    200    HTTP    host07    /project/start.aspx    18,294    private      text/html; charset=utf-8    iexplore:4000            
    1    200    HTTP    host07    /project/extjs/resources/css/ext-all-embedded-css/coolite.axd?v=22233    18,326    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT    text/css; charset=utf-8    iexplore:4000            
    2    200    HTTP    host07    /project/extjs/resources/css/xtheme-gray-embedded-css/coolite.axd?v=22233    1,803    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT    text/css; charset=utf-8    iexplore:4000            
    3    304    HTTP    host07    /project/App_Themes/Default/Default.css    0            iexplore:4000            
    4    200    HTTP    host07    /project/extjs/adapter/ext/ext-base-js/coolite.axd?v=22233    12,632    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT    text/javascript; charset=utf-8    iexplore:4000            
    5    200    HTTP    host07    /project/extjs/ext-all-js/coolite.axd?v=22233    178,221    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT    text/javascript; charset=utf-8    iexplore:4000            
    6    200    HTTP    host07    /project/coolite/coolite-core-js/coolite.axd?v=22233    28,923    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT    text/javascript; charset=utf-8    iexplore:4000            
    7    304    HTTP    host07    /project/WebResource.axd?d=NbiDgzhgWKGUmfYjs-uztA2&t=633595372183430636    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    8    304    HTTP    host07    /project/ScriptResource.axd?d=87g1jpEjOFbqyJtU8scjIS63DK1M2XXhtBHwq_wfgSbOK5AD3u9Hry6KhxcjtL7S0&t=5a9b6beb    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    9    304    HTTP    host07    /project/ScriptResource.axd?d=87g1jpEjOFbqyJtU8scjIS63DK1M2XXhtBHwq_wfgSbck5fcuU91WxmjkX-BQPj2Q3AK2RXTfXx3M71GsxS4PQ2&t=5a9b6beb    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    10    304    HTTP    host07    /project/ScriptResource.axd?d=BxsiBiHW0B6bDbl-M1wP7lDN3OfBDXKbXAI70shYKpSpQ0O9loDeT6gtgeLQGKg7uPLrJ3o8B6KR3_y21Ik80TWHl5xmnxcNB1TQ80aHDdg1&t=ffffffffe969503d    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    11    304    HTTP    host07    /project/ScriptResource.axd?d=BxsiBiHW0B6bDbl-M1wP7lDN3OfBDXKbXAI70shYKpSpQ0O9loDeT6gtgeLQGKg7bMtUgmvhl41xHTeGzl-_SZuVFBB7DDu0QgeUI8GcUDY1&t=ffffffffe969503d    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    12    304    HTTP    host07    /project/ScriptResource.axd?d=cXk1K5lhBYH_Q_2K_Cim36AUPyKP-9MoI0_MyOaLuVU1    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    13    304    HTTP    host07    /project/WebResource.axd?d=wN9EA4bNTYiZ0mC2-fc_HQ2&t=633595372183430636    0    public  Expires: Thu, 29 Jul 2010 13:54:42 GMT        iexplore:4000            
    14    304    HTTP    host07    /project/images/sprite.png    0            iexplore:4000            
    15    200    HTTP    host07    /project/extjs/resources/images/gray/panel/white-top-bottom-gif/coolite.axd    369    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    16    200    HTTP    host07    /project/extjs/resources/images/gray/panel/tool-sprites-gif/coolite.axd    6,295    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    17    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-strip-btm-bg-gif/coolite.axd    1,372    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    18    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-btm-right-bg-gif/coolite.axd    2,275    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    19    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-btm-left-bg-gif/coolite.axd    1,429    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    20    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg-gif/coolite.axd    2,246    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    21    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-btm-inactive-left-bg-gif/coolite.axd    1,454    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    22    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tab-strip-bg-gif/coolite.axd    334    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    23    200    HTTP    host07    /project/extjs/resources/images/gray/tabs/tabs-sprite-gif/coolite.axd    2,393    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    24    200    HTTP    host07    /project/extjs/resources/images/gray/panel/left-right-gif/coolite.axd    205    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    25    200    HTTP    host07    /project/extjs/resources/images/gray/panel/corners-sprite-gif/coolite.axd    1,282    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    26    200    HTTP    host07    /project/extjs/resources/images/gray/panel/top-bottom-gif/coolite.axd    408    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    27    200    HTTP    host07    /project/extjs/resources/images/gray/window/left-corners-png/coolite.axd    524    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/png; charset=utf-8    iexplore:4000            
    28    200    HTTP    host07    /project/extjs/resources/images/gray/window/right-corners-png/coolite.axd    556    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/png; charset=utf-8    iexplore:4000            
    29    200    HTTP    host07    /project/extjs/resources/images/gray/window/top-bottom-png/coolite.axd    4,448    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/png; charset=utf-8    iexplore:4000            
    30    200    HTTP    host07    /project/extjs/resources/images/gray/window/left-right-png/coolite.axd    4,389    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/png; charset=utf-8    iexplore:4000            
    31    200    HTTP    host07    /project/extjs/resources/images/default/sizer/s-handle-gif/coolite.axd    1,037    public  Expires: Thu, 29 Jul 2010 13:54:44 GMT    image/gif; charset=utf-8    iexplore:4000            
    32    200    HTTP    host07    /project/extjs/resources/images/default/sizer/e-handle-gif/coolite.axd    1,421    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    33    200    HTTP    host07    /project/extjs/resources/images/default/sizer/ne-handle-gif/coolite.axd    306    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    34    200    HTTP    host07    /project/extjs/resources/images/default/sizer/nw-handle-gif/coolite.axd    302    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    35    200    HTTP    host07    /project/extjs/resources/images/default/sizer/se-handle-gif/coolite.axd    303    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    36    200    HTTP    host07    /project/extjs/resources/images/default/sizer/sw-handle-gif/coolite.axd    303    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    37    200    HTTP    host07    /project/extjs/resources/images/default/form/text-bg-gif/coolite.axd    240    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    38    200    HTTP    host07    /project/extjs/resources/images/gray/button/btn-sprite-gif/coolite.axd    1,059    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    39    200    HTTP    host07    /project/extjs/resources/images/default/grid/invalid_line-gif/coolite.axd    188    public  Expires: Thu, 29 Jul 2010 13:54:49 GMT    image/gif; charset=utf-8    iexplore:4000            
    40    200    HTTP    host07    /project/extjs/resources/images/default/grid/invalid_line-gif/coolite.axd    188    public  Expires: Thu, 29 Jul 2010 13:54:49 GMT    image/gif; charset=utf-8    iexplore:4000            
    41    200    HTTP    host07    /project/extjs/resources/images/default/qtip/tip-sprite-gif/coolite.axd    5,460    public  Expires: Thu, 29 Jul 2010 13:54:43 GMT    image/gif; charset=utf-8    iexplore:4000            
    42    200    HTTP    host07    /project/Index.aspx    754    private      text/html; charset=utf-8    iexplore:4000
    Also, It is possible to combine all Javascript requests to coolite.axd in just one request?

    The current version of ToolkitScriptManager we can set 2 properties like this: CombineScripts="true"
    CombineScriptsHandlerUrl="~/CombineScriptsHandler.ashx". Is it
    something you guys are plannin to do with Coolite Script Manager as
    well? If not, I would like to do using something like this:
    http://madskristensen.net/post/Optim...sourceaxd.aspx



    I tried to apply the suggestion of the link and it worked to load the ViewPort, Tab, etc, but it throws some exceptions later using the application.

    Ext.fly(el).child("span.x-tab-strip-text", true) has no properties
    http://localhost/project/js.axd?path...ffffff914c5d8e,
    Line 1199
    I just would like to know for your experience if using an external httphandler/httpmodule to combine coolite.axd is something I will be able to achieve or not?

    Thanks.
    Leo.

  7. #7

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Hi,

    We made some changes regarding resources cache. Can you update and retest again.


    Script combine: It is useful feature. I think it can be added to the 1.0 release
  8. #8

    RE: [CLOSED] Caching issue when forms authentication is enabled



    Hi Vlad,

    Once again you rock it!
    Works like a charm... with all resource images being cached successfully. Response 304.
    Tested on FF 2 and IE7.

    Thanks a lot.
    Leo.
  9. #9

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Is it possible to get the version where this was fixed? We have a deployed application that we want to patch with this fix but can not upgrade to latest due to some breaking changes.
  10. #10

    RE: [CLOSED] Caching issue when forms authentication is enabled

    Hi,

    I think you need to get ResourceManager.cs file from SVN
    trunk\Coolite.Ext.Web\Core\ResourceManager.cs


    and investigate SetResponseCache function (add similiar to own version)
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Forms authentication RedirectFromLoginPage not working
    By CarWise in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 05, 2012, 1:25 PM
  2. Caching issue with Ext.axd on IIS 6
    By ppettigrew in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 17, 2010, 3:46 PM
  3. [CLOSED] AjaxMethod and Forms authentication
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 20, 2009, 7:57 PM
  4. Replies: 4
    Last Post: May 07, 2009, 11:44 PM
  5. [CLOSED] Forms Authentication and Coolite (Ext)
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 04, 2009, 11:18 AM

Posting Permissions