Merge branch 'enable-compress-in-production' into 'master'
Enable asset compression in production. `config.assets.compress` needed to be explicitly enabled. Follow-up to !3544. Resolves #14344. See merge request !3632
This commit is contained in:
commit
a2303417d0
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
Please view this file on the master branch, on stable branches it's out of date.
|
Please view this file on the master branch, on stable branches it's out of date.
|
||||||
|
|
||||||
v 8.7.0 (unreleased)
|
v 8.7.0 (unreleased)
|
||||||
|
- Enable gzip for assets, makes the page size significantly smaller. !3544 / !3632 (Connor Shea)
|
||||||
- Load award emoji images separately unless opening the full picker. Saves several hundred KBs of data for most pages. (Connor Shea)
|
- Load award emoji images separately unless opening the full picker. Saves several hundred KBs of data for most pages. (Connor Shea)
|
||||||
- All images in discussions and wikis now link to their source files !3464 (Connor Shea).
|
- All images in discussions and wikis now link to their source files !3464 (Connor Shea).
|
||||||
- Return status code 303 after a branch DELETE operation to avoid project deletion (Stan Hu)
|
- Return status code 303 after a branch DELETE operation to avoid project deletion (Stan Hu)
|
||||||
|
|
|
@ -21,6 +21,9 @@ Rails.application.configure do
|
||||||
# Generate digests for assets URLs
|
# Generate digests for assets URLs
|
||||||
config.assets.digest = true
|
config.assets.digest = true
|
||||||
|
|
||||||
|
# Enable compression of compiled assets using gzip.
|
||||||
|
config.assets.compress = true
|
||||||
|
|
||||||
# Defaults to nil and saved in location specified by config.assets.prefix
|
# Defaults to nil and saved in location specified by config.assets.prefix
|
||||||
# config.assets.manifest = YOUR_PATH
|
# config.assets.manifest = YOUR_PATH
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue