Cloudfront CDN to serve static assets

Last Update: May 4, 2021

This addon is 100% hooks based requiring no source edits to install.

Works with ElkArte: 1.0-1.1

Summary

This addon will set some of your sites resources to point to an Amazon Cloud front Distribution. This allows you to point theme images, CSS, JS and Custom avatar images to come from a distribution domain, such that those items are cached and served from edge servers in the cloud.

This will speed up distribution of your static web content, such as .js, .css, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations. When a user requests content that you’re serving with CloudFront, the user is routed to the edge location that provides the lowest latency (time delay), so that content is delivered with the best possible performance. If the content is already in the edge location with the lowest latency, CloudFront delivers it immediately. If the content is not in that edge location, CloudFront retrieves it from an Amazon S3 bucket or an HTTPS server (for example, a web server) that you have identified as the source for the definitive version of your content.

Features

  • Works without making any theme edits so should work with all themes and addons.
  • Adds a few check boxes in the admin panel where you can choose what items to serve from the cloud.

Installation:

Download a package by URL

  • Download a package by URL is a quick way to download a package from the web to your forum. Using (Package Manager -> Download Package) enter the below link under the “Download a package by url” field and select Download. This will save the package to your server where you can install it.

Upload a Package

  • Alternatively, download the package using the below link and then using (Package Manager -> Upload Package) browse to where you saved the package on your computer and upload it to the server. You may also FTP the downloaded file directly to your packages directory.

License:

This ElkArte Addon is subject to the terms of the Mozilla Public License version 1.1 (the “License”). You can obtain a copy of the License at https://www.mozilla.org/MPL/1.1/