Unless you take specific actions your script could get cached by an
opensocial container (or a corporate proxy for that matter)

If your generated javascript depends upon the user-agent and accept-language
headers I'd recommend setting appropriate cache-control and vary headers.
 Something like this:

Vary: User-Agent, Accept-Language, Content-Transfer-Encoding
Cache-Control: private, max-age=36000

The private setting should insure that the opensocial (and other proxies)
pass through your content undisturbed and uncached.  The Vary: and max-age
headers should allow your content to be cached in the browser.


On Wed, Sep 1, 2010 at 7:42 AM, Randy Hudson <[email protected]> wrote:

> My HTML content contains script tags which point to a javascript
> service that sends down a custom wad of javascript.  With some
> OpenSocial containers, my service is still being called by the browser
> directly, which includes important information like the headers for
> User-Agent, and Accept-Language, which affect the response.
>
> I know that some containers may aggressively rewrite my script tags so
> that they proxy through the container.  So, do I have to redesign my
> service for this proxy client, or will it forward along the User-Agent
> and Accept-Language headers which my service relies on?  Thanks in
> advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSocial Application Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<opensocial-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-api?hl=en.
>
>


-- 
Paul Lindner -- [email protected] -- linkedin.com/in/plindner

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en.

Reply via email to