ihp-1.4.0: Haskell Web Framework
Safe HaskellNone
LanguageGHC2021

IHP.Static

Synopsis

Documentation

staticRouteShortcut :: Application -> Application -> Application Source #

Routes requests with a static prefix directly to the static file server, bypassing the full middleware stack (session, CORS, auto-refresh, etc.). All other requests go through the normal middleware pipeline.

This improves performance for static assets since they only need to be read from disk.