← Back to team overview

launchpad-dev team mailing list archive

Re: Javascript learnings #2: Initializing your model from the JSONRequestCache

 

On 14/04/11 23:49, Aaron Bentley wrote:
> On 11-04-13 02:26 PM, Aaron Bentley wrote:
>> The sourcepackage +sharing-details pages have model objects.  But how do
>> we initialise them?  We considered initialising them from the page HTML.
>>  We considered using the web service.  But it turns out there's already
>> a great facility for this: the JSON cache.
> 
> Something I forgot to mention is that the JSON cache is currently only
> available for logged-in users, so if your javascript needs to work for
> anonymous users, you need to take a different approach.

We own the code that renders the JSON cache. If you need it for
unauthenticated requests, we should show it instead of working around
its absence. Let's stop working around our broken infrastructure.

William.

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References