Skip to content

Commit

Permalink
double quotes and max age 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftmarks committed Mar 8, 2025
1 parent 3a33282 commit e17c736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/v1/lcpe_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def lcpe_type
end

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

# If additional filter params present, bypass versioning
Expand Down

0 comments on commit e17c736

Please sign in to comment.