Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Caching of result of sc/DataSourceLoader?dataSource=...?

    Hi Isomorphic,

    I watch the start-up of my application in Firebug and noticed that there are almost no items transferred - at least there are way less requests than I thought. Most likely this is because all JS code is in one file, which is also cached. Impressive.
    The most data is transferred for sc/DataSourceLoader?dataSource=.... As this data doesn't change often I'd like to know if it is possible to cache the result of the call.
    I think that this could be possible with a If-Modified-Since-header and the DataSourceLoader looking for the last-modified-dates of the .ds.xml files requested.

    My start-up transfers are 152kb in total, 150kb from the DataSourceLoader. It would be great if its possible to get rid of this overhead.

    Most likely I'm just missing a setting, but http://www.smartclient.com/smartgwte...rceLoader.html didn't have information on this, either.

    Best regards,
    Blama

    #2
    I also found http://www.smartclient.com/docs/9.0/...ss..FileLoader which suggests to pre-cache static files which the user fills out the login-window for the 1st time. This sounds like a good idea.
    I found this class via http://www.smartclient.com/product/#networkPerformance and noticed that there is no equivalent in SmartGWT. Is that correct?

    Thank you,
    Blama

    Comment


      #3
      @Everyone finding this thread via search:

      I just found this old thread by chance. It seems I already asked this question in pre-support times. It got answered here.

      Best regards
      Blama

      Comment

      Working...
      X