CHANGE_ASSET_EXPIRY&CONTENT_COMPRESSION
This commit is contained in:
parent
56c3b1aba9
commit
422df2d3fd
18
.htaccess
18
.htaccess
@ -36,6 +36,24 @@ Options -Indexes
|
|||||||
# Ensure Authorization header is passed along
|
# Ensure Authorization header is passed along
|
||||||
RewriteCond %{HTTP:Authorization} .
|
RewriteCond %{HTTP:Authorization} .
|
||||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresByType image/jpg "access 1 year"
|
||||||
|
ExpiresByType image/jpeg "access 1 year"
|
||||||
|
ExpiresByType image/gif "access 1 year"
|
||||||
|
ExpiresByType image/png "access 1 year"
|
||||||
|
ExpiresByType text/css "access 1 month"
|
||||||
|
ExpiresByType text/js "access 1 month"
|
||||||
|
ExpiresByType application/pdf "access 1 month"
|
||||||
|
ExpiresByType application/javascript "access 1 month"
|
||||||
|
ExpiresByType application/x-javascript "access 1 month"
|
||||||
|
ExpiresByType application/x-shockwave-flash "access 1 month"
|
||||||
|
ExpiresByType image/x-icon "access 1 year"
|
||||||
|
ExpiresDefault "access 2 days"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule !mod_rewrite.c>
|
<IfModule !mod_rewrite.c>
|
||||||
|
|||||||
@ -42,6 +42,9 @@ class App extends BaseConfig
|
|||||||
*/
|
*/
|
||||||
public string $indexPage = 'index.php';
|
public string $indexPage = 'index.php';
|
||||||
|
|
||||||
|
|
||||||
|
public $compressOutput = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* URI PROTOCOL
|
* URI PROTOCOL
|
||||||
|
|||||||
@ -38,6 +38,22 @@ Options -Indexes
|
|||||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresByType image/jpg "access 1 year"
|
||||||
|
ExpiresByType image/jpeg "access 1 year"
|
||||||
|
ExpiresByType image/gif "access 1 year"
|
||||||
|
ExpiresByType image/png "access 1 year"
|
||||||
|
ExpiresByType text/css "access 1 month"
|
||||||
|
ExpiresByType text/js "access 1 month"
|
||||||
|
ExpiresByType application/pdf "access 1 month"
|
||||||
|
ExpiresByType application/javascript "access 1 month"
|
||||||
|
ExpiresByType application/x-javascript "access 1 month"
|
||||||
|
ExpiresByType application/x-shockwave-flash "access 1 month"
|
||||||
|
ExpiresByType image/x-icon "access 1 year"
|
||||||
|
ExpiresDefault "access 2 days"
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
<IfModule !mod_rewrite.c>
|
<IfModule !mod_rewrite.c>
|
||||||
# If we don't have mod_rewrite installed, all 404's
|
# If we don't have mod_rewrite installed, all 404's
|
||||||
# can be sent to index.php, and everything works as normal.
|
# can be sent to index.php, and everything works as normal.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user