Skip to content

Commit

Permalink
add caching headers for static files in storage/uploads (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten authored and wellingguzman committed Feb 26, 2017
1 parent ed090e7 commit 91ce6ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion storage/uploads/.htaccess
@@ -1,3 +1,8 @@
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 1 year"
</IfModule>

<FilesMatch "\.(php|phps|php5|htm|shtml|xhtml|cgi.+)$">
ForceType text/plain
</FilesMatch>
</FilesMatch>

0 comments on commit 91ce6ad

Please sign in to comment.