mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Explicity compress assets
This commit is contained in:
parent
8e91f51940
commit
26b6902af3
2 changed files with 7 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ module Osem
|
|||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
|
||||
# Set cache headers
|
||||
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=31536000' }
|
||||
|
||||
config.active_job.queue_adapter = :delayed_job
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ Osem::Application.configure do
|
|||
# Generate digests for assets URLs
|
||||
config.assets.digest = true
|
||||
|
||||
config.assets.css_compressor = :sass
|
||||
config.assets.js_compressor = :uglifier
|
||||
config.assets.gzip = true
|
||||
|
||||
# Defaults to nil and saved in location specified by config.assets.prefix
|
||||
# config.assets.manifest = YOUR_PATH
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue