Skip to content

Instantly share code, notes, and snippets.

Avatar

Todd Hooper thoop

View GitHub Profile
@thoop
thoop / gist:6be274259bdeee4e2363e008577bff2a
Last active Dec 27, 2019
Prerender.io IIS web.config
View gist:6be274259bdeee4e2363e008577bff2a
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<!--# Only proxy the request to Prerender if it's a request for HTML-->
<rule name="Prerender" stopProcessing="true">
<serverVariables>
<set name="HTTP_X_PRERENDER_TOKEN" value="[...your token...]" />
</serverVariables>