Strapi Middleware Upload Plugin Cache

screenshot of Strapi Middleware Upload Plugin Cache
strapi

Adds middleware for caching uploaded assets when using strapi-provider-upload-local

Overview:

This product analysis is based on the Strapi middleware plugin called "strapi-middleware-upload-plugin-cache". The plugin is used in conjunction with the Strapi framework's default media library (strapi/provider-upload-local) to handle the uploading of assets. It is designed to provide configurable cache-control HTTP response headers and ETag HTTP response headers for each asset. The analysis also mentions the differences between koa-static and koa-static-cache, which are used in @strapi/provider-upload-local and this middleware-plugin respectively.

Features:

  • Configurable Cache-Control Headers: This plugin allows users to define cache-control HTTP response headers for each asset uploaded via the media library in Strapi.
  • ETag Headers: The plugin also adds ETag HTTP response headers for assets, providing a way to validate the cache and reduce bandwidth usage.
  • Compatibility with Strapi Versions: The installation guide mentions the compatibility of the plugin with different versions of Strapi, including 4.3+, 4.0.0 - 4.2.X, and version 3.
strapi
Strapi

Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.