Step #5 Setting up the CDN in WP Super Cache
CDN is an acronym for Content Delivery Network. If you do not set this up right you can break your website. Click on the tab that says CDN.
Off Site URL
Next you are going to enter the URL that will be your content delivery network provider like http://a1websitepro.wpengine.netdna-cdn.com or another example https://cdn.yoast.com. Basically this is the website that is going to download all your identical content and server it for you.
Include Directories
So now that you told the plugin that you have a CDN you have to let it know which files you are going to let the CDN handle and which files that you want the plugin to handle. You can do that by letting the plugin know the directories or folders that you want included in the static file matching.
Exclude Substring
So lets say that you do not want something to be a part of your CDN because you are having problems getting it to load like a flash. You would put php.,flv in the box to exclude all flv files but if you only wanted it to do one you can do something like this: .php. mymoive.flv and enter that into the box.
Additional CNAMES
Ok lets say that your CDN has a few names that they use to serve your content. You would enter those urls here like: http://cdn2.a1websitpero.com, http://cdn2.a1websitepro.com, http://cdn3.a1websitepro.com. Notice that you use a comma “,” to separate the CNAMES or URL’s.
Step #6 Monitor Cached Contents
You can monitor and see how many pages are cached on your website by clicking on the contents tab. This will let you know how many cached pages that you have and how many are expired. You can then delete the entire cache by clicking on delete cache button. You can also delete only the “expired” pages by clicking on “Delete Expired” button.
The expired cache
One of the things that you might want to understand that if a cache is expired it is still good. If you set you cache to expire every 3600 seconds and 5000 seconds later its expired it is still good and browsers will use those resources. However they will refresh when the garbage collection comes to clean out the expired cache that is in the cache folder.
1 Trackback