Add kawaii mode (#3773)
This commit is contained in:
parent
181e61bedb
commit
81ae7e425d
17 changed files with 152 additions and 30 deletions
2
bskyweb/.gitignore
vendored
2
bskyweb/.gitignore
vendored
|
@ -10,6 +10,8 @@ static/js/*.js
|
|||
static/js/*.map
|
||||
static/js/*.js.LICENSE.txt
|
||||
static/js/empty.txt
|
||||
static/media/*.png
|
||||
static/media/empty.txt
|
||||
templates/scripts.html
|
||||
templates/*-embed.html
|
||||
static/embed/*.html
|
||||
|
|
|
@ -158,7 +158,7 @@ func serve(cctx *cli.Context) error {
|
|||
|
||||
// Cache javascript and images files for 1 week, which works because
|
||||
// they're always versioned (e.g. /static/js/main.64c14927.js)
|
||||
if strings.HasPrefix(path, "/static/js/") || strings.HasPrefix(path, "/static/images/") {
|
||||
if strings.HasPrefix(path, "/static/js/") || strings.HasPrefix(path, "/static/images/") || strings.HasPrefix(path, "/static/media/") {
|
||||
maxAge = 7 * (60 * 60 * 24) // 1 week
|
||||
}
|
||||
|
||||
|
|
0
bskyweb/static/media/.gitkeep
Normal file
0
bskyweb/static/media/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue