From 61b38b44058972d2498035c56446119deb74867e Mon Sep 17 00:00:00 2001 From: realabbas5 Date: Sat, 14 Sep 2019 20:44:54 +0530 Subject: [PATCH 1/3] .htaccess file added --- .htaccess | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..df585e5f0 --- /dev/null +++ b/.htaccess @@ -0,0 +1,24 @@ + + ExpiresActive On + + # Images + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType image/webp "access plus 1 year" + ExpiresByType image/svg+xml "access plus 1 year" + ExpiresByType image/x-icon "access plus 1 year" + + # Video + ExpiresByType video/mp4 "access plus 1 year" + ExpiresByType video/mpeg "access plus 1 year" + + # CSS, JavaScript + ExpiresByType text/css "access plus 1 month" + ExpiresByType text/javascript "access plus 1 month" + ExpiresByType application/javascript "access plus 1 month" + + # Others + ExpiresByType application/pdf "access plus 1 month" + ExpiresByType application/x-shockwave-flash "access plus 1 month" + \ No newline at end of file From 2cde1a6e02b4e3ec472bc099e863277a1a6b9ab2 Mon Sep 17 00:00:00 2001 From: realabbas5 Date: Sun, 15 Sep 2019 12:37:00 +0530 Subject: [PATCH 2/3] .htaccess file added --- .htaccess | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.htaccess b/.htaccess index df585e5f0..c46a59f90 100644 --- a/.htaccess +++ b/.htaccess @@ -6,8 +6,6 @@ ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" - ExpiresByType image/svg+xml "access plus 1 year" - ExpiresByType image/x-icon "access plus 1 year" # Video ExpiresByType video/mp4 "access plus 1 year" @@ -15,8 +13,6 @@ # CSS, JavaScript ExpiresByType text/css "access plus 1 month" - ExpiresByType text/javascript "access plus 1 month" - ExpiresByType application/javascript "access plus 1 month" # Others ExpiresByType application/pdf "access plus 1 month" From 3fa9c22a04722a162609c62b6f8a07c4aa710b7d Mon Sep 17 00:00:00 2001 From: realabbas5 Date: Sun, 15 Sep 2019 12:41:49 +0530 Subject: [PATCH 3/3] .htaccess file added --- .htaccess | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index c46a59f90..ac6b2c567 100644 --- a/.htaccess +++ b/.htaccess @@ -6,15 +6,14 @@ ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" + ExpiresByType image/svg+xml "access plus 1 year" + ExpiresByType image/x-icon "access plus 1 year" - # Video - ExpiresByType video/mp4 "access plus 1 year" - ExpiresByType video/mpeg "access plus 1 year" - + # CSS, JavaScript ExpiresByType text/css "access plus 1 month" + ExpiresByType text/javascript "access plus 1 month" + ExpiresByType application/javascript "access plus 1 month" - # Others - ExpiresByType application/pdf "access plus 1 month" - ExpiresByType application/x-shockwave-flash "access plus 1 month" + \ No newline at end of file