Documentation ¶
Index ¶
- Constants
- func AcceptUploadedFileAndSaveToFolder(filePrefix, folderToSaveTo string, file multipart.File) (string, error)
- func SetCacheControlHeader(ctx *context.Context, headerValue string)
- func SetContentType(ctx *context.Context, headerValue string)
- func SetVaryHeaderToAcceptEncoding(ctx *context.Context)
Constants ¶
View Source
const ( CSS_CACHE_CONTROL_HEADER = "public, max-age=31536000" JS_CACHE_CONTROL_HEADER = "public, max-age=31536000" JSON_CACHE_CONTROL_HEADER = "public, max-age=31536000" IMAGE_CACHE_CONTROL_HEADER = "public, max-age=31536000" FONT_CACHE_CONTROL_HEADER = "public, max-age=31536000" HTML_CACHE_CONTROL_HEADER = "public, max-age=31536000" )
Variables ¶
This section is empty.
Functions ¶
func SetCacheControlHeader ¶
func SetContentType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.