Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -1165,7 +1165,9 @@ |
1166 | 1166 | loadTitleKey: function( titleKey, callback ) { |
1167 | 1167 | var request = { |
1168 | 1168 | 'action': 'parse', |
1169 | | - 'page': titleKey |
| 1169 | + 'page': titleKey, |
| 1170 | + 's-maxage' : 3600, |
| 1171 | + 'maxage' : 3600 |
1170 | 1172 | }; |
1171 | 1173 | mw.getJSON( this.apiUrl, request, function( data ) { |
1172 | 1174 | if ( data && data.parse && data.parse.text['*'] ) { |
— | — | @@ -1209,7 +1211,9 @@ |
1210 | 1212 | 'apprefix' : titleKey, |
1211 | 1213 | 'apnamespace' : this.getTimedTextNS(), |
1212 | 1214 | 'aplimit' : 200, |
1213 | | - 'prop':'revisions' |
| 1215 | + 'prop':'revisions', |
| 1216 | + 's-maxage' : 3600, |
| 1217 | + 'maxage' : 3600 |
1214 | 1218 | }; |
1215 | 1219 | mw.getJSON( this.apiUrl, request, function( sourcePages ) { |
1216 | 1220 | // If "timedText" is not a valid namespace try "just" with prefix: |