Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepLink ¶
DeepLink middleware handles deep-linking into a single page application (SPA).
This middleware should wrap your asset handler, and expects all requests are requesting a file with an extention. (ie: .js, .html, .png, .jpg etc)
If it recieves a request targeting a directory (with or without a trailing '/'), it will rewrite the request to target appURL
appURL should be the location of the SPA
func MaxAgeCacheHandler ¶
MaxAgeCacheHandler applies Cache-control: max-age=<age> header according to options.
Options age: cache experation in seconds include: indicates if matches should be included/excluded. prefix: prefix is matched to the beginning of url.
func NoStoreCacheHandler ¶
NoStoreCacheHandler applies Cache-control: no-store header according to options.
Options include: indicates if matches should be included/excluded. prefix: prefix is matched to the beginning of url.
Types ¶
This section is empty.