This is an automated email from the ASF dual-hosted git repository. hyunkun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push: new debbb8f Add expire time in response header for better browser leverage caching (#483) debbb8f is described below commit debbb8f497b03e1ccb6416cf8b7b7a381186d974 Author: Ali Abbas <43527087+realab...@users.noreply.github.com> AuthorDate: Sat Sep 28 18:44:43 2019 +0530 Add expire time in response header for better browser leverage caching (#483) * .htaccess file added * update expire time to a shorter time --- .htaccess | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..dd104c6 --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ +<IfModule mod_expires.c> + ExpiresActive On + + # Images + ExpiresByType image/jpeg "access plus 7 days" + ExpiresByType image/gif "access plus 7 days" + ExpiresByType image/png "access plus 7 days" + ExpiresByType image/webp "access plus 7 days" + ExpiresByType image/svg+xml "access plus 7 days" + ExpiresByType image/x-icon "access plus 7 days" + + + # CSS, JavaScript + ExpiresByType text/css "access plus 1 days" + ExpiresByType text/javascript "access plus 1 days" + ExpiresByType application/javascript "access plus 1 days" + + +</IfModule>