• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » KeyCDN Setup : WordPress, W3 Total Cache, HSTS Website

By Abhishek Ghosh September 19, 2015 5:48 pm Updated on September 19, 2015

KeyCDN Setup : WordPress, W3 Total Cache, HSTS Website

Advertisement

KeyCDN Offers HSTS, Secured Setup Needs Work. Here is Guide on KeyCDN Setup For WordPress With W3 Total Cache For HSTS Website on HP Cloud. KeyCDN is less known or rather less advertised. We talked about the basics of KeyCDN. There is a link that webpage, if you click & register via it as Free Trial, you’ll get $5.00 credit, if you directly register, you’ll get $1.00 credit. Like DropBox. Credit Card not required to register for KeyCDN. You can skip reading the next “A Discussion on Page Loading Speed With WordPress, W3 Total Cache on HSTS Website” paragraph if you are looking for setup only – go the next sub header for your need.

 

KeyCDN Setup : A Discussion on Page Loading Speed With WordPress, W3 Total Cache on HSTS Website

 

We except that the reader is an advanced user, versed with the terminologies like Uniform Resource Locator, SFTP, Rsync, OpenStack Object Storage, Time To First Byte, HSTS Configuration, HSTS Everywhere Atlas Listing etc.

Directly using Akamai and NetDNA/MaxCDN Enterprise cost too much. Facebook uses the same subdomain of Akamai, HP uses the same subdomain of Akamai, we also use the same subdomain of Akamai. As Akamai is well known to the DNS Cache, the DNS lookup time becomes faster. But, SSL negotiation time of Akamai sucks. Ultimately, Akamai and KeyCDN has no significant difference in total loading time for a sane-sized object. It is not abnormal for Akamai to get DNS Poisoning! Someone targeted Facebook to hack, for using the same subdomain, the user may get affected. All uses the known subdomain for better page loading speed, but has a remote chance of breech of security.

Advertisement

---

In very short, you should use your own SSL certificate with KeyCDN.
We think that using www subdomain for CDN stuffs is a good money saving idea. It is only possible if you are using a naked domain. Only 301 redirect the published URLs corresponding to the naked domains for web pages. Modern web crawlers do not mind www to non-www 301 redirect, only home page 301 redirection is very important – there are idiots who thinks without www websites does not work. If you read the link of previous sentence, possibly you’ll not blame the laymen for www idea. You are using Public Key Pinning, use the second SSL Certificate, not the origin server’s one. Using www subdomain with W3TC is tricky.

If you are confused then buy a $10 certificate for subdomain like dr.abhishekghosh.net.

 

KeyCDN Setup : KeyCDN Dashboard Part

 

Every advanced users can enable HSTS, add the custom SSL certificate, activate higher expiry for the content, add 301 redirection from HTTP to HTTPS. Pretty easy works from Web GUI.

 

KeyCDN Setup : We Will Configure as Origin Push

 

Push CDN or Origin Push CDN works very much like just a Cloud Storage like DropBox. We upload the content directly to the CDN (automatically by server or manually) and point the URLs of static content for it.

KeyCDN is both Push & Origin Pull CDN. KeyCDN as push CDN support FTP and Rsync. Normal WordPress websites, specially with no user-end uploading, works better with Push. Forum Softwares work better with Origin Pull. We are describing as Push CDN. Origin Push has practically no work.

 

KeyCDN Setup : WordPress and W3 Total Cache

 

Actually easy. First go to “General” page of W3TC from WordPress Admin panel, the URL is like this :

Vim
1
https://thecustomizewindows.com/wp-admin/admin.php?page=w3tc_general

You will use the “Self-Hosted/File Transfer Protocol Upload” option. Save it after enabling CDN. Nginx Microcache will serve the old webpages, if you do not flush the cache, only enabling will do no harm.

Go to the CDN configuration page of W3 Total Cache from WordPress Admin panel, the URL is like this :

Vim
1
https://thecustomizewindows.com/wp-admin/admin.php?page=w3tc_cdn

You will configure like this screenshot with your real credential, path etc. :

KeyCDN - A Low Cost CDN For WordPress End Users

If you need to see the screenshot in full size, click here.

Now run a test and upload the contents as per your need – like tick Host wp-includes/ files, Host theme files etc. option on that webpage and click the upload button beside. WordPress W3 Total Cache Plugin will filter the static files and upload it. Run a curl on any static file to check the header :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl -I https://tcw-1d50.kxcdn.com/js/sp-scripts.js
 
HTTP/1.1 200 OK
Server: keycdn-engine
Date: Sat, 19 Sep 2015 17:36:11 GMT
Content-Type: application/javascript
Content-Length: 669
Connection: keep-alive
Vary: Accept-Encoding
Last-Modified: Mon, 31 Aug 2015 16:50:02 GMT
ETag: "55e485ba-29d"
Expires: Mon, 19 Oct 2015 17:36:11 GMT
Cache-Control: max-age=2592000
X-Edge-Location: sgsg
Access-Control-Allow-Origin: *
Accept-Ranges: bytes

200 OK, so its fine. Flush the cache and run a test on webpagetest on any URL of your website and check for possible 404.

 

KeyCDN Setup : HSTS Part

 

Most painful part is editing the xml file on HTTPS Everywhere Atlas. If you used 301 redirection, you need to lift if off. If you add a new custom subdomain, ideally add rules. This is our current ruleset (see on official website). This is it :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<ruleset name="The Customize Windows.com">
 
<!-- Direct rewrites:
-->
<target host="thecustomizewindows.com"/>
<target host="www.thecustomizewindows.com"/>
 
<!-- Complications:
-->
<target host="thecustomizewindows.net"/>
<target host="www.thecustomizewindows.net"/>
 
<!-- needed for debugging and dev works related to HSTS -->
 
<!--exclusion pattern="^http://cloud\.thecustomizewindows\.com/"/-->
 
<!--test url="http://cloud.thecustomizewindows.com/" /-->
 
<!-- Akamai CDN -->
 
<securecookie host="^a248\.e\.akamai\.net$" name=".+"/>
 
<!-- allow trusted services -->
 
<securecookie host="^cdn\.goroost\.com$" name=".+"/>
<securecookie host="^www\.googletagservices\.com$" name=".+"/>
<securecookie host="^tpc\.googlesyndication\.com$" name=".+"/>
<securecookie host="^googleads\.g\.doubleclick\.net$" name=".+"/>
 
 
<!-- forcing higher security for currently unused dot net domain -->
 
<rule from="^http://(?:www\.)?thecustomizewindows\.net/" to="https://thecustomizewindows.com/"/>
 
<rule from="^http:" to="https:"/>
 
</ruleset>

As you can see, if we want to use www subdomain for hosting the static contents, we have to work much, else the browsers will do a 301 redirection to load from the server! KeyCDN has great guide on Zone :

Vim
1
https://www.keycdn.com/support/section/zone-security/

If we add a new subdomain like s.thecustomizewindows.com, then we need to create a separate ruleset for that subdomain. Yes, it is optional, but that should be the right work. http://www.s.thecustomizewindows.com should be forced to redirected to the naked domain s.thecustomizewindows.com.

Things are not exactly easy. Next, you need to work on Nginx CORS header. It depends – we have to allow all domains due to Google Ads.

This Article Has Been Shared 908 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to KeyCDN Setup : WordPress, W3 Total Cache, HSTS Website

  • Private Cloud Solutions at a glance : How Private Cloud works

    Cloud computing describes the approach that abstracted IT infrastructures where as Private Cloud provides a set of tools with which one can develop cloud services.

  • Private Cloud : 6 Errors in Cloud Integration

    Private Cloud integration strategy if not carried rightly can be fatal for a Company.Cost, technology, management of Private Cloud differs from brand to brand.

  • Node in Cloud Computing : What this Node Means ?

    Node in Cloud Computing is a connection point, either a redistribution point or an end point for data transmissions in general. Node in Cloud Computing is not a neologism.

  • Example of Platform as a Service in Cloud Computing : Heroku Cloud

    Example of Platform as a Service in Cloud Computing can be Heroku Cloud which is Debian based platform supporting Ruby, Java, Node.js,Scala,Clojure, Python,PHP.

  • HP Cloud : Getting Started with Pay as you Go Cloud Computing

    HP Cloud, which is based on OpenCloud platform delivers various Cloud Solution in a Pay as you Go Cloud Computing model like unmanaged Rackspace Cloud Server.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023
  • ESP32 Arduino Water Tank Level Monitoring Using Laser ToF Sensor March 23, 2023
  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023

About This Article

Cite this article as: Abhishek Ghosh, "KeyCDN Setup : WordPress, W3 Total Cache, HSTS Website," in The Customize Windows, September 19, 2015, March 25, 2023, https://thecustomizewindows.com/2015/09/keycdn-setup-wordpress-w3-total-cache-hsts-website/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT