mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: add immutable caching to rails site of things
This commit is contained in:
@ -20,7 +20,7 @@ class HighlightJsController < ApplicationController
|
||||
|
||||
response.headers["Last-Modified"] = 10.years.ago.httpdate
|
||||
response.headers["Content-Length"] = highlight_js.bytesize.to_s
|
||||
expires_in 1.year, public: true
|
||||
immutable_for 1.year
|
||||
|
||||
render text: highlight_js, disposition: nil, content_type: 'application/javascript'
|
||||
end
|
||||
|
Reference in New Issue
Block a user