Skip to content

Commit

Permalink
Improve comments and spacing in htaccess templates
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Jun 27, 2016
1 parent 656098f commit 72cfa46
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/includes/templates/htaccess/browser-caching-enable.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Client-side caching.

# Enable browser caching.
FileETag mtime size

<IfModule expires_module>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Force NO trailing slash on all virtual requests (except WP admin area).
<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Force a trailing slash on all virtual requests (except WP admin area).
<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
Expand Down
3 changes: 3 additions & 0 deletions src/includes/templates/htaccess/cdn-filters.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

# Send Access-Control-Allow-Origin header for Static CDN Filters.

<IfModule headers_module>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
Expand Down
3 changes: 1 addition & 2 deletions src/includes/templates/htaccess/gzip-enable.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# GZIP compression.

# Enable GZIP compression.
<IfModule deflate_module>
<IfModule filter_module>
AddOutputFilterByType DEFLATE text/plain text/html
Expand Down

0 comments on commit 72cfa46

Please sign in to comment.