class

Lucky::DevAssetCacheHandler

Inherits HTTP::Handler < Reference < Object

Makes sure browser cache for assets is busted at every request in development.

Constants

ASSET_EXTENSIONS = [".js", ".css", ".map", ".json", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".woff", ".woff2", ".ttf", ".eot"] of ::String

Constructors

new(enabled : Bool)
Source

Instance methods

call(context : HTTP::Server::Context) : Nil
Source