π€ Cassette
The Skinny
Are you using Amazon S3, Google Cloud Storage or another object storage provider (OSP) to serve your images and other assets? Cloudflare is unable to automatically cache these valuable resources! With help from Cassette, Cloudflare will cache your OSP assets resulting in faster page loads and savings on your OSP bills!
Without Cassette:
Storage
Provider] B --> |response| A style C fill:#F9B878,stroke:#333,stroke-width:2px
With Cassette:
Storage
Provider] style D fill:#80F6CB,stroke:#333,stroke-width:2px B --> |response| A
Cassette π speeds up your site by caching OSP resources and π°saves you money on your object storage provider bill by reducing OSP requests.
You can install it for Free with one configuration and the Pro plan unlocks unlimited configurations.
How to Install
Powered by Cloudflare
Cassette is powered by Cloudflare. If you're already using Cloudflare, click here to install Cassette.
TIP
Cloudflare offers DDoS protection, a global CDN, SSL certificates, and a lot more cool stuff for free. You should probably use it.
Configuration
Cassette only takes a few minutes to install to speed up your site. The installation page covers the basics but we'll cover more here.
The following Options are available for each Object Storage Configuration:
Options
Assets Subdomain
This subdomain is created on your site by Cassette in order to enable Cloudflare to cache your object storage assets. Requests made to this subdomain are routed to Object Storage Hostname
.
PROTIP
This is necessary because Cloudflare can only cache assets on domains you control. Cloudflare can cache resources that map to assets.yoursite.com but not yoursite.s3.amazonaws.com.
Object Storage Hostname
The URL of your Object Storage bucket obtained from your Object Storage Provider. This is probably something like yoursite.s3.amazonaws.com or yoursite.storage.googleapis.com.
OPTIONAL
Object Storage Pathname This optional paramter is useful if your Object Storage bucket has a pathname.
TIP
Some buckets are intialized with a path-style URL - like http://storage.googleapis.com/yoursite. In this case, Object Storage Pathname: /yoursite
.
β Fortify