Whenever I wish to break cache, I include a nonce GET parameter.

'&nonce=' + (new Date()).getTime()
On Jul 13, 2011 5:44 PM, "Eric Patrick" <[email protected]> wrote:
> I have a "dashboarding" control that fetches a JSON representation of
> a SQL cube via Request.JSON. For large cubes, my control has
> options.cache which is passed to the server, and the server will
> respond with a cache expiration header. This has worked out quite
> well, as it elegantly leverages the browser's native caching
> capability. The URI being cached is something like:
>
> /DashboardService.asmx/JSON?procedure=MyDashboardProcedure&cache=600
>
> I'd like to introduce the ability for a user to "force" a clearing of
> this cached resource.
>
> Training users to use Ctrl-F5 is both inelegant and inefficient, as it
> would force an unnecessary reload of other cached items.
>
> I could simply change the URI that I am calling, but the typical use
> case is that a user want to get the 'refreshed' cube, and then keep
> that current cube in cache for the default cache duration (600 seconds
> in this example).
>
> Any suggestions?
>
> Thanks in advance,
>
> Eric

Reply via email to