Jump to content

手册:$wgReferrerPolicy

From mediawiki.org
This page is a translated version of the page Manual:$wgReferrerPolicy and the translation is 33% complete.
服务器URL及文件路徑: $wgReferrerPolicy
referrer policy meta 标签的值。
引进版本:1.25.0 (Gerrit change 186104; git #4a9840e2)
移除版本:仍在使用
允许的值:false or one or more of the values from the specification.
默认值:false

Details

String or array (since MediaWiki 1.31) or false. 把它的值设为“false”,将不会输出这个meta标签。

Since MediaWiki 1.31 (git #fbe17a73), setting it to an array means the first value will be the default, and the others serve as a fallback chain for browsers which do not understand it. This will result in multiple meta tags being output, in the reverse order, as last valid tag takes precedence according to the specification. Previous versions of MediaWiki did not support an array value for this setting, causing a fatal error if an array is used.