<!--
	CDN buckets:

		- assets1.fastly.com.a.prod.fastly.net
		- fastly-assets.a.ssl.fastly.net
		- pubnub.a.ssl.fastly.net
		- fastly.zendesk.com


	Nonfunctional domains:

		- purge.fastly.net	(times out)


	Problematic domains:

		- fastly.com	(times out)


	Fully covered domains:

		- fastly.com subdomains:

			- (www.)	(^ → www)
			- api
			- app
			- beacon
			- beta
			- blog
			- debug
			- maintenance

		- *.fastly.net:

			- control
			- mirrors
			- assets1.fastly.com.a.prod	(→ fastly.a.ssl.fastly.net)

			- *.a.ssl:

				- fastly
				- fastly-assets

		- *.imgix.net
		- *.parsecdn.com

-->
<ruleset name="Fastly">

	<target host="fastly.com" />
	<target host="*.fastly.com" />
	<target host="*.fastly.net" />
		<exclusion pattern="^http://purge\.fastly\.net/" />
	<target host="*.fastssl.net" />
	<target host="*.imgix.net" />
	<target host="parsecdn.com" />


	<rule from="^http://(?:www\.)?fastly\.com/"
		to="https://www.fastly.com/" />

	<rule from="^http://(ap[ip]|beacon|beta|blog|debug|maintenance)\.fastly\.com/"
		to="https://$1.fastly.com/" />

	<rule from="^https?://assets1\.fastly\.com\.a\.prod\.fastly\.net/"
		to="https://fastly.a.ssl.fastly.net/" />

	<rule from="^http://([^@:/]+)\.fastly\.net/"
		to="https://$1.fastly.net/" />

	<rule from="^http://([\w-]+)\.fastssl\.net/"
		to="https://$1.fastssl.net/" />

	<rule from="^http://([\w-]+)\.imgix\.net/"
		to="https://$1.immgix.net/" />

	<rule from="^http://([\w-]+)\.parsecdn\.com/"
		to="https://$1.parsecdn.com/" />

</ruleset>
