Topic Closed
21 Posts


 is there a plugin that compress/optimize html data cached for the output?

Analysin Download speed i found
Browser cache
Found 31 resources that do not have caching headers or are configured for too short a time.

thank you in advance :)

10 months ago#11566

1.5K Posts
16 Plugins
design, web development & visual effects

Assuming your server is Apache:
For better caching append the following code to your .htaccess (and change the values as needed)
mod_expires must be available in order to make it work.

<IfModule mod_expires.c>
  ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
  ExpiresDefault                          "access plus 0 seconds"

# Data
  ExpiresByType text/html                 "access plus 0 seconds"
  ExpiresByType text/x-php                "access plus 0 seconds"
  ExpiresByType text/xml                  "access plus 0 seconds"
  ExpiresByType application/xml           "access plus 0 seconds"
  ExpiresByType application/json          "access plus 0 seconds"

# Favicon (cannot be renamed)
  ExpiresByType image/x-icon              "access plus 12 month"

# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 6 month"
  ExpiresByType image/png                 "access plus 6 month"
  ExpiresByType image/jpeg                "access plus 6 month"
  ExpiresByType video/ogg                 "access plus 6 month"
  ExpiresByType audio/ogg                 "access plus 6 month"
  ExpiresByType video/mp4                 "access plus 6 month"
  ExpiresByType video/webm                "access plus 6 month"

# Webfonts
  ExpiresByType application/x-font-ttf    "access plus 12 month"
  ExpiresByType font/opentype             "access plus 12 month"
  ExpiresByType application/x-font-woff   "access plus 12 month"
  ExpiresByType application/x-font-woff2  "access plus 12 month"
  ExpiresByType image/svg+xml             "access plus 12 month"
  ExpiresByType application/ "access plus 12 month"

# CSS and JavaScript
  ExpiresByType text/css                  "access plus 6 month"
  ExpiresByType application/javascript    "access plus 6 month"



edit: With such sort of aggressive caching, mind to not forget to hard refresh the pages when you make changes to static assets.


Edited: 10 months ago#11567

1.5K Posts
16 Plugins
design, web development & visual effects

For compression:

Nowadays web servers should have either mod_gzip or mod_deflate installed. Ask your service provider if in doubt.

If server-side output compression is not available, Typesetter will compress html output using PHP, but it won't compress static assets.

10 months ago#11568

1.5K Posts
16 Plugins
design, web development & visual effects

Oops, I just checked your website (In fact I should have checked earlier)

Unfortunately you aren't using Apache but nginx, so my .htaccess example will not work.
With nginx, cache control headers are set in the host configuration (via $sent_http_content_type and $expires map).
You will hopefully have settings for that in your webhost's control panel.

The good news is that gzip compression is enabled on your host.

10 months ago#11570

21 Posts

juergen, thanks a lot!!!!!!!! 

10 months ago#11571

290 Posts
4 Themes
8 Plugins

A short notice : For ngnix exist  htaccess to nginx converters : (and others)

See also :

*  and




mod_deflate  for nginx :

gzip on;   gzip_min_length  1100;  gzip_buffers  4 32k;

gzip_types    text/plain application/javascript application/x-javascript text/xml text/css;

gzip_vary on;


Edited: 10 months ago#11572

Topic Closed



elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In