-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset compression #1923
Asset compression #1923
Conversation
config/application.rb
Outdated
@@ -60,6 +60,13 @@ class Application < Rails::Application | |||
# Version of your assets, change this if you want to expire all your assets | |||
config.assets.version = '1.0' | |||
|
|||
# Set cache headers | |||
config.static_cache_control = "public, max-age=31536000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://edgeguides.rubyonrails.org/5_0_release_notes.html#railties-deprecations
Shall we re-write as following?
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=31536000' }
8840e9a
to
712bca5
Compare
config/application.rb
Outdated
|
||
# Errors raised within `after_rollback`/`after_commit` propagate normally | ||
# like in other Active Record callbacks. | ||
config.active_record.raise_in_transactional_callbacks = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is deprecated in Rails 5. I had removed this line in #1130, so I'm guessing it was re-added because of a conflict during a rebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's applicable to Rails 4.2. In Rails 5.0 those exceptions are not suppressed and that line only shows a depreciation warning rails/rails@07d3d40
712bca5
to
1dd2de5
Compare
@AEtherC0r3 ... are we good? |
Checklist
master
branch.Short description of what this resolves/which issues does this fix?:
Changes proposed in this pull request: