Enable Arc CDN on a MediaWiki installation. [NOTE: The Scratch Wiki no longer uses this extension due to trust and privacy concerns with Arc]
This repository has been archived on 2026-04-26. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2021-07-15 18:40:06 +00:00
i18n Add opt in preference 2021-07-15 18:23:51 +00:00
ArcHooks.php Disable preferences logic if rollout is 100% 2021-07-15 18:40:06 +00:00
extension.json Add opt in preference 2021-07-15 18:23:51 +00:00
LICENSE Add license 2021-07-13 21:48:03 +00:00
README.md Add instruction about service worker 2021-07-13 21:44:40 +00:00

ArcCDNIntegration

Enable Arc CDN on a MediaWiki installation.

Configuration

Find your Arc widget ID. Arc tells you to add something like this to your site:

<script async src="https://arc.io/widget.min.js#(WIDGET ID)"></script>

Find the (WIDGET ID) and configure the extension with it:

wfLoadExtension( 'ArcCDNIntegration' );
$wgArcWidgetID = '(WIDGET ID)';

Optionally, you can choose to only enable Arc CDN for a certain proportion of users:

$wgArcRolloutPercentage = 10; // 10% of users will be involved

Finally, serve arc-sw.js from your web root, either by reverse proxying to that link or just copying and serving it yourself.