banner
rabithua

rabithua

twitter
github

Typecho access optimization and Tencent Cloud COS

I have been using Typecho for a while now, and the reason I chose it is because it's lightweight and fast.

Actually, Typecho is already fast enough. What I've done is just for my own amusement, whether it's necessary depends on everyone's mood~

Optimization#

  1. Enable https (Enabling https is a necessary step)

  2. Enable CDN, I use Tencent Cloud's CDN, which has free monthly traffic quota. I forgot the specific amount, but I haven't exceeded it anyway.

  3. Image issues, the webpage loading speed of Typecho mainly depends on images. Images are generally large files, and one image may exceed the size of the entire webpage's other content. Therefore, images need a good handling solution. I still use Tencent Cloud's service - Object Storage COS. Apart from being maliciously used up the traffic quota once, I haven't exceeded the free quota. It's said to be free for half a year, and I seem to have used it for more than half a year without starting to pay for it.

Object Storage Settings#

Enable the cosv5 plugin by Cai Cai Zi, the specific configuration tutorial is 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) part will also have a subdomain. Specific https and some other configurations can be found here.

image

image

The image links have changed from the original long bucket links to the current links. In addition, Tencent Cloud COS recently launched an image processing service, where you can customize processing rules. For example, I converted the images to webp format to improve loading speed. It's simple, add the format here, then add /ces to the image link, make sure to change it to your own custom style name.

image

Then there is a client for Object Storage, where you can upload other files. The download speed is very fast and can be used to share some plugin files (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 scaled style can be displayed normally.

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