SendFile
Transfers the file from the given path. Sets the Content-Type response HTTP header field based on the filenames extension.
Method use gzipping by default, set it to true to disable.
func (c *Ctx) SendFile(file string, compress ...bool) error
app.Get("/not-found", func(c *fiber.Ctx) error {
return c.SendFile("./public/404.html");
// Disable compression
return c.SendFile("./static/index.html", false);
})