Skip to content

Commit

Permalink
Update how key is generated
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd committed Nov 13, 2023
1 parent 7877a7e commit eab9438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/docs-new/layouts/partials/version_numbers.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{ $versions := "" }}

{{ $headers := dict "Cache-Control" "no-cache" "Connection" "keep-alive" }}
{{ $cacheKey := print $versionsUrl (now.Format "20060102") (div now.Hour 6) | md5 }}
{{ $cacheKey := print $versionsUrl (now.Format "20060102") (now.Hour) | md5 }}
{{ $opts := dict "headers" $headers "key" $cacheKey }}

{{- if hasPrefix $versionsUrl "https://" -}}
Expand Down

0 comments on commit eab9438

Please sign in to comment.