forked from aws/opsworks-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce node[:apache][:deflate_types] attribute.
Move mime-types for which mod_deflate is active into attribute file. This allows the user to customize these types. In addition this also aligns NGinx and Apache cookbooks.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<IfModule mod_deflate.c> | ||
AddOutputFilterByType DEFLATE application/javascript application/json application/x-javascript application/xhtml+xml application/xml application/xml+rss text/css text/html text/javascript text/plain text/xml | ||
AddOutputFilterByType DEFLATE <%= node[:apache][:deflate_types].join(' ') %>; | ||
</IfModule> |