diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 06:10:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 06:10:04 +0300 |
commit | bf10fcacaa0a754a1f21aad7457d635df7bd94d8 (patch) | |
tree | 0807a08497c2b52641aeb819db88bf35370371e0 /app/models/pages | |
parent | ba2d7917678e52684f1c27d4f337d93e18fe9f7d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/pages')
-rw-r--r-- | app/models/pages/lookup_path.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/pages/lookup_path.rb b/app/models/pages/lookup_path.rb index e7d455085c0..c1056d4f6cb 100644 --- a/app/models/pages/lookup_path.rb +++ b/app/models/pages/lookup_path.rb @@ -32,7 +32,9 @@ module Pages { type: 'zip', - path: deployment.file.url_or_file_path(expire_at: 1.day.from_now), + path: deployment.file.url_or_file_path( + expire_at: ::Gitlab::Pages::CacheControl::DEPLOYMENT_EXPIRATION.from_now + ), global_id: global_id, sha256: deployment.file_sha256, file_size: deployment.size, |