dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6b004
)
* API: fixed caching header per jeluf's fix in query.php
author
Yuri Astrakhan
<yurik@users.mediawiki.org>
Fri, 13 Oct 2006 05:28:28 +0000
(
05:28
+0000)
committer
Yuri Astrakhan
<yurik@users.mediawiki.org>
Fri, 13 Oct 2006 05:28:28 +0000
(
05:28
+0000)
includes/api/ApiFormatBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiFormatBase.php
b/includes/api/ApiFormatBase.php
index
92c9213
..
c886a15
100644
(file)
--- a/
includes/api/ApiFormatBase.php
+++ b/
includes/api/ApiFormatBase.php
@@
-76,7
+76,8
@@
abstract class ApiFormatBase extends ApiBase {
$isHtml = $this->getIsHtml();
$mime = $isHtml ? 'text/html' : $this->getMimeType();
header("Content-Type: $mime; charset=utf-8;");
-
+ header("Cache-Control: private, s-maxage=0, max-age=0");
+
if ($isHtml) {
?>
<html>