rabithua

rabithua

twitter
github

Typecho Access Optimization and Tencent Cloud COS

I have been using Typecho for a while, and the reason for choosing it is of course because it is lightweight and fast to access.

In fact, the speed of Typecho is already fast enough; what I am doing is just for my own experimentation, whether it's necessary depends on everyone's mood~

Optimization#

  1. Enable https (enabling https is a very necessary step)

  2. Enable CDN, I am using Tencent Cloud's CDN, which has a free traffic quota every month; I forgot the exact amount, but I haven't exceeded it.

  3. Image issues, the loading speed of Typecho webpages mainly depends on images, which are generally larger files; a single image may exceed the size of all other content on the webpage, so a good handling solution for images is needed. I am still using Tencent Cloud's service—Object Storage COS. I haven't exceeded the free quota except for one time when someone maliciously used up the traffic. It is said to be free for six months, but it seems I have used it for more than six months without starting to pay.

Object Storage Settings#

Enable the Caicai's COS v5 plugin, and the specific configuration tutorial can be found here

Based on this, I enabled a subdomain (img.rabithua.club) for the blog's image resources. The subdomain also needs to apply for an https certificate. When customizing the accelerated domain name, the CDN (Content Delivery Network) will also show the subdomain. Specific https and some other configurations can be found here.

image

image

The image link has changed from the originally long storage bucket link to the current link. Additionally, Tencent Cloud COS recently launched an image processing service, allowing custom processing rules. For example, I converted the images to webp format, which improved the image loading speed. It's very simple; just add the format here, and then add /ces to the image link. Note to replace it with your own custom style name.

image

Then, Object Storage has a client that can also upload other files. The download speed is very fast and can be used to share files like plugins (not recommended for sharing large files, as it may consume too much traffic quota).

Known Issues#

WebP format images cannot be displayed in iOS system browsers, but the zoom style can be displayed normally.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.