dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send cache purges for action=raw after editing user css/js
[lhc/web/wiklou.git]
/
includes
/
actions
/
RawAction.php
diff --git
a/includes/actions/RawAction.php
b/includes/actions/RawAction.php
index
a0116fb
..
bab2f93
100644
(file)
--- a/
includes/actions/RawAction.php
+++ b/
includes/actions/RawAction.php
@@
-77,7
+77,8
@@
class RawAction extends FormlessAction {
$contentType = $this->getContentType();
$contentType = $this->getContentType();
- # Force caching for CSS and JS raw content, default: 5 minutes
+ # Force caching for CSS and JS raw content, default: 5 minutes.
+ # Note: If using a canonical url for userpage css/js, we send an HTCP purge.
if ( $smaxage === null ) {
if ( $contentType == 'text/css' || $contentType == 'text/javascript' ) {
$smaxage = intval( $wgForcedRawSMaxage );
if ( $smaxage === null ) {
if ( $contentType == 'text/css' || $contentType == 'text/javascript' ) {
$smaxage = intval( $wgForcedRawSMaxage );