Skip to content

Commit

Permalink
Feat: 增加 HTTP 缓存配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Oct 10, 2024
1 parent 8aeae96 commit 0cc5d70
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions config/development/HTTPCache.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

[cache]
[cache.for]
includes = ['https://api.github.com/repos/**']
# excludes = ['**']
[[polls]]
disable = true
high = '0s'
low = '0s'
[polls.for]
includes = ['**']
2 changes: 1 addition & 1 deletion config/development/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
# Content adapters config for component projects
# https://github.com/hugo-fixit/component-projects
[projectsAdapters]
enable = false
# enable = false
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.20

require (
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 // indirect
github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c // indirect
github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699 // indirect
github.com/hugo-fixit/cmpt-mdevtools v1.0.1 // indirect
github.com/hugo-fixit/component-projects v1.3.1 // indirect
github.com/hugo-fixit/component-projects v1.3.2 // indirect
github.com/hugo-fixit/hugo-json-feed v1.0.2 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect
github.com/hugo-fixit/shortcode-docs-bookmark v1.0.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 h1:G0A3HBcU7zu/FZPEVlzexO4GBNs1CAUVNwoRkekUbdU=
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7/go.mod h1:6vXHaAZv1p9meW2mZ5KmlWlu5W9YiIpUTkHGWwkp3Pk=
github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c h1:MRiQOuHiqd97ZY6VuNCX9Qyet4m7vC8LxYEuC+HLRbs=
github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699 h1:nGvayxHiFDRdF8dJi7ZCyQbVM4yPq+/DKYQllDKDxkI=
github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/cmpt-mdevtools v1.0.1 h1:IdUhqO1ktKsJF5D0ReU37PU2CQCpgjY4EFFQ0S69sKQ=
github.com/hugo-fixit/cmpt-mdevtools v1.0.1/go.mod h1:+1tfeT4ugFNa1kx/3yQF0NUup2Fejiq7EwvrpcY2xWw=
github.com/hugo-fixit/component-projects v1.3.1 h1:xJnmnyWHHMGuvYlY5auehobbn5yFdF5zSsnL/lUOuuo=
github.com/hugo-fixit/component-projects v1.3.1/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/component-projects v1.3.2 h1:okOA8ow0/T7yk8I5oen7OofJAbY6VrngGsFbqPozTWs=
github.com/hugo-fixit/component-projects v1.3.2/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/hugo-json-feed v1.0.2 h1:xZABGHuoX/u0hnoF5AoP7ane7l9T7UNmlOAiFdWvBvA=
github.com/hugo-fixit/hugo-json-feed v1.0.2/go.mod h1:ystvqmSnWdkU0aBybKKNztj8P1ViY6AhMaK/bsBL9uw=
github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=
Expand Down

0 comments on commit 0cc5d70

Please sign in to comment.