Change
gadgets.io.getProxyUrl(url)
to
gadgets.io.getProxyUrl(url, opts)
Add a new option REFRESH_INTERVAL to control the TTL for proxied
content. Recommend that the default be 1h (3600 seconds)
Add
<static> object REFRESH_INTERVAL
Attempt to use content caching. The Refresh Interval is the number
of seconds we want to cache the given response. The default is 3600
(1 hour). Note that Signed requests and object with POST_DATA
present will generally not be cached.
to gadgets.io.RequestParameters
--
Paul Lindner ||||| | | | | | | | | |
lin...@inuus.com
Agreed, the two methods use different options, I just want to stick
with common param names where appropriate.
I'd really like to see this for 0.8. We've had a number of developer
requests for this and I've added it to hi5modules.com as an interim
measure. Our latest changeset adds this to getProxyUrl:
http://www.hi5networks.com/platform/changeset/122
And previously we added REFRESH_INTERVAL to makeRequest etc.
Some proxies may not be able to pass through the http headers, plus
some http servers are not easy to set up cache-control headers. This
gives the application writer an easy way to _override_ the default
caching interval for an object, and also convey that a request may be
transient.
> You received this message because you are subscribed to the Google Groups "OpenSocial and Gadgets Specification Discussion" group.
> To post to this group, send email to opensocial-an...@googlegroups.com
> To unsubscribe from this group, send email to opensocial-and-gadg...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/opensocial-and-gadgets-spec?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
--
Paul Lindner ||||| | | | | | | | | |
lin...@inuus.com