Skip to content

Commit

Permalink
Disallow template files from PageSpeed Apache Module
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a9fca1)
  • Loading branch information
wellingguzman committed Apr 23, 2017
1 parent f1798f8 commit 8cc6961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Expand Up @@ -41,3 +41,9 @@ AddType font/woff .woff
# Fix $HTTP_RAW_POST_DATA deprecated warning
php_value always_populate_raw_post_data -1
</ifModule>

# Prevent PageSpeed module from rewriting the templates files
# Avoiding it from breaking the template
<IfModule pagespeed_module>
ModPagespeedDisallow "*/app/**/*.html"
</IfModule>

0 comments on commit 8cc6961

Please sign in to comment.