decd01c8d0
Up from the previous 5 seconds. It's still short enough that the pages shouldn't feel stale, but it further reduces the number of requests that will reach the app. Also moved this into a shared concern so we can adjust the caching rule in one place.
13 lines
203 B
Ruby
13 lines
203 B
Ruby
module CachedPublicly
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_action :set_cache_headers
|
|
end
|
|
|
|
private
|
|
def set_cache_headers
|
|
expires_in 30.seconds, public: true
|
|
end
|
|
end
|