Skip to content

Commit

Permalink
Update headers (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftmarks authored Mar 7, 2025
1 parent ceb009b commit 3a33282
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/v1/lcpe_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def lcpe_type
end

def set_headers(preload_version)
response.set_header('Cache-Control', 'no-cache, max-age=0, must-revalidate')
response.set_header('ETag', preload_version)
response.set_header('Cache-Control', 'private')
response.headers.delete('Pragma')
response.set_header('Expires', 1.week.since.to_s)
response.set_header('ETag', "W/'#{preload_version}'")
end

# If additional filter params present, bypass versioning
Expand Down

0 comments on commit 3a33282

Please sign in to comment.