mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
Don't enable Cache-Control if the site has restricted access.
This commit is contained in:
@ -58,8 +58,7 @@ class ListController < ApplicationController
|
||||
draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_user
|
||||
list.draft = draft
|
||||
|
||||
# Add expiry of 1 minute for anonymous
|
||||
expires_in 1.minute, :public => true if current_user.blank?
|
||||
discourse_expires_in 1.minute
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
Reference in New Issue
Block a user