Changes pending approval

0
 
0
go-staticfiles - Description
Diff:
  • staticfiles collect files from a different directories (including subdirectories), compute hash of each file, append hash sum to the filenames and copy files to the output directory. This approach allows to use aggressive caching on CDN and HTTP headers for static files and to implement so called "cache hierarchy strategy". staticfiles by default post-process .css files to fix files references.
  • `staticfiles` is an asset manager for a web applications written in Go. It collects asset files (CSS, JS, images, etc.) from a different locations (including subdirectories), appends hash sum of each file to its name and copies files to the target directory to be served by `http.FileServer`.
  • This approach allows to serve files without having to clear a CDN or browser cache every time the files was changed.
Suggested by catcombo