You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org> on 2012/03/01 20:24:00 UTC

[jira] [Commented] (SHINDIG-1450) io argument REFRESH_INTERVAL=0 is ignored

    [ https://issues.apache.org/jira/browse/SHINDIG-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220278#comment-13220278 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1450:
--------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/3773/
-----------------------------------------------------------

(Updated 2012-03-01 19:23:15.003539)


Review request for Jesse Ciancetta and Stanton Sievers.


Summary
-------

If a gadget does a makeRequest with method GET and REFRESH_INTERVAL = 0, the request is issued from the browser as a POST with no refresh interval, and results in the default caching interval used on the server.  The POST prevents the browser caching, but the refresh interval also should be set to prevent the server caching, which I believe is the intended behavior.


This addresses bug SHINDIG-1450.
    https://issues.apache.org/jira/browse/SHINDIG-1450


Diffs
-----

  http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/core.io/io.js 1241007 
  http://svn.apache.org/repos/asf/shindig/trunk/features/src/test/javascript/features/core.io/iotest.js 1241475 

Diff: https://reviews.apache.org/r/3773/diff


Testing
-------

Modified iotest.js and rest are passing


Thanks,

BrianLillie


                
> io argument REFRESH_INTERVAL=0 is ignored
> -----------------------------------------
>
>                 Key: SHINDIG-1450
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1450
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>            Reporter: Randy Hudson
>
> To prevent the bogus behavior of caching request responses for 1 hour, we are setting REFRESH_INTERVAL to 0.  But shindig and iGoogle seem to be ignoring values less than 1:
> code from io.js:
>         if (httpMethod === "GET" && refreshInterval > 0) {

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira