Its been year, I have never checked how was my blog performing in terms of Speed, and on my birthday I decided to speed it up. finally, I made it. if you are having MVC website  you can check previous post where you can change your web.config and Speed up your MVC website

When you install WP Super Cache on Linux hosting most of the configurations are working out of the box. In case of IIS / Windows hosting out of the box .htaccess doesn’t help you much. So here are the steps to be performed to make sure it boost your site up.

Step 1: Go to the root folder of your website where you have installed WordPress, check if you have web.config if its there insert the rule below under rewrite rules if not create new file web.config file.

<rule name=”WP Super Cache IIS” stopProcessing=”true”>
<match url=”(.*)” />
<conditions logicalGrouping=”MatchAll”>
<add input=”{REQUEST_METHOD}” pattern=”^POST$” negate=”true” />
<add input=”{QUERY_STRING}” pattern=”.*=.*” negate=”true” />
<add input=”{QUERY_STRING}” pattern=”.*attachment_id=.*” negate=”true” />
<add input=”{HTTP_COOKIE}” pattern=”^.*(comment_author_|wordpress|wp-postpass_).*$” negate=”true” />
<add input=”{DOCUMENT_ROOT}/wp-content/cache/supercache/{HTTP_HOST}/{R:1}index.html” matchType=”IsFile” />
</conditions>
<action type=”Rewrite” url=”wp-content/cache/supercache/{HTTP_HOST}/{R:1}index.html” />
</rule>

 

Now once this is done you are nearly finished.

Step2: Completely optional if you are not configuring Garbage collection under advance option of WP Super Cache

If you configured it. you need to create one more web.config under <your root>\wp-content\cache

with below block of code

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name=”Cache-Control” value=”max-age=86400, must-revalidate” />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

 

Make sure max-age value on Garbage Collector and web.config matches.

If you want your WP Super Cache to start performing immediately

Just start preload and you are all set!

Comment below and let me know if this helps you or if you are facing any issues configuring WP Super Cache