DEV: Update cache lifetime in user_avatars spec (#19297)

Followup to badd64ceee
This commit is contained in:
David Taylor 2022-12-02 10:34:08 +00:00 committed by GitHub
parent badd64ceee
commit f8aec41678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ RSpec.describe UserAvatarsController do
expect(response.status).to eq(302)
expect(response.location).to eq("https://s3-cdn.example.com/optimized/path")
expect(response.headers["Cache-Control"]).to eq('max-age=31556952, public, immutable')
expect(response.headers["Cache-Control"]).to eq('max-age=3600, public, immutable')
end
it 'serves new version for old urls' do