class Lucky::DevAssetCacheHandler

Overview

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

Included Modules

Defined in:

lucky/dev_asset_cache_handler.cr

Constant Summary

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

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?

Constructor Detail

def self.new(enabled : Bool) #

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) : Nil #

[View source]