SlowpokeWaffle v0.3.0 SlowpokeWaffle.StaticPlug View Source
Manages serving static files uploaded to slowpoke_waffle storage.
It may be the case that when you returned an URL it was on local storage
but when front-end party tried to load it, the resource was already
uploaded on an inet storage and got deleted locally, so with default
Plug.Static we get 404.
This plug allows to redirect on requests to static files that hadn't been found locally.
It accepts the very same parameters Plug.Static does, except it
requires :waffle_definition key, have which been not provided, raises
MissingWaffleDefinition exception. slowpoke waffle storage provides
its own plug that passes :waffle_definition key into options, so you
shouldn't use this module directly.