Commit e520c0fb authored by Antonio Terceiro's avatar Antonio Terceiro
Browse files

Fix caching theme stylesheet with asset pipeline

If stylesheet_link_tag gets's an absolute path starting with /assets, it
won't append a hash of the file contents to the URL, so if you update a
theme you won't get a new URL and varnish will cache the old stylesheet
for a month or so.
parent 8f633a81
......@@ -86,7 +86,7 @@ module LayoutHelper
end
def theme_stylesheet_path
"/assets#{theme_path}/style.css"
"#{theme_path}/style.css".gsub(%r{^/}, '')
end
def layout_template
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment