PERF: avoid cookies for all static, public, cached forever assets

This commit is contained in:
Sam
2015-05-22 16:15:46 +10:00
parent e59d5fd0eb
commit fe46d1dd3b
5 changed files with 20 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ class SiteCustomizationsController < ApplicationController
skip_before_filter :preload_json, :check_xhr, :redirect_to_login_if_required
def show
no_cookies
cache_time = request.env["HTTP_IF_MODIFIED_SINCE"]
cache_time = Time.rfc2822(cache_time) rescue nil if cache_time
stylesheet_time =