mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-01-22 23:01:14 +00:00
Use full instance url for cache key (#243)
Closes #240 Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/243 Reviewed-by: orangix <orangix@noreply.codeberg.org> Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co> Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co>
This commit is contained in:
committed by
video-prize-ranch
parent
eabb7d9917
commit
23b66cba47
2
main.go
2
main.go
@@ -96,7 +96,7 @@ func main() {
|
||||
Expiration: 30 * time.Minute,
|
||||
MaxBytes: 25000000,
|
||||
KeyGenerator: func(c *fiber.Ctx) string {
|
||||
return utils.GetInstanceProtocol(c) + " " + c.OriginalURL()
|
||||
return utils.GetInstanceUrl(c) + c.OriginalURL()
|
||||
},
|
||||
CacheControl: true,
|
||||
StoreResponseHeaders: true,
|
||||
|
||||
Reference in New Issue
Block a user