diff --git a/lib/middleware/anonymous_cache.rb b/lib/middleware/anonymous_cache.rb index d315c53a5..a65eb2df1 100644 --- a/lib/middleware/anonymous_cache.rb +++ b/lib/middleware/anonymous_cache.rb @@ -89,6 +89,7 @@ module Middleware if status == 200 && cache_duration headers_stripped = headers.dup.delete_if{|k, _| ["Set-Cookie","X-MiniProfiler-Ids"].include? k} + headers_stripped["X-Discourse-Cached"] = "true" parts = [] response.each do |part| parts << part