Commit b7f9bb38 authored by OMGhixD's avatar OMGhixD

Re-enabling Cache System

For this it is also required to include some cache rules in htaccess

to use the cache system it is also REQUIRED to enable Apache Module
**MOD_DEFLATE**
parent bc21ac23
......@@ -112,6 +112,42 @@ Header set Cache-Control "max-age=7200, must-revalidate"
</IfModule>
# Gzip Compression end
# Cache Start
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml svg svgz
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-woff
AddOutputFilterByType DEFLATE application/x-font-woff2
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/eot
AddOutputFilterByType DEFLATE font/woff
AddOutputFilterByType DEFLATE font/woff2
AddOutputFilterByType DEFLATE font/opentype
# For Olders Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
#Cache End
# Keep Alive start
<IfModule mod_headers.c>
Header set Connection keep-alive
......
......@@ -216,4 +216,4 @@ $config['analytics'] = false;
| Turning it on will improve performance drastically.
|
*/
$config['cache'] = false;
\ No newline at end of file
$config['cache'] = true;
\ No newline at end of file
......@@ -166,7 +166,7 @@
<b>We recommend FusionGEN in combination with an Apache Webserver.<br><br>
The Apache modules you'll need are:</b> <br>
mod_rewrite and mod_headers
mod_rewrite, mod_headers and mod_deflate
<span class="check-result" style="display:none"></span>
<div id="apache-modules-missing" style="display:none;color:#e18f00;margin-top:15px">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment