cache not active

Basti

Administrator
Staff member
Visiolist by default has no cache feature ( although there being a cache folder )

What you can try is using .htaccess ( found in topsite root ) and adding he following to it. Source html5 boilerplate https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess also has other neat htaccess tricks

Note that only the mod_expire part is enough to cache, but the other 2 come in handing. The first for IE rendering and the second for a bit performance

Code:
# Force IE to render pages in the highest available mode in the various
# cases when it may not: http://hsivonen.iki.fi/doctype/ie-mode.pdf.
# Use, if installed, Google Chrome Frame.
<IfModule mod_headers.c>
    Header set X-UA-Compatible "IE=edge,chrome=1"
    # `mod_headers` can't match based on the content-type, however, we only
    # want to send this header for HTML pages and not for the other resources
    <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
        Header unset X-UA-Compatible
    </FilesMatch>
</IfModule>
 
# Since we're sending far-future expires headers (see below), ETags can
# be removed: http://developer.yahoo.com/performance/rules.html#etags.
 
# `FileETag None` is not enough for every server.
<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
 
FileETag None
 
<IfModule mod_expires.c>
 
    ExpiresActive on
    ExpiresDefault                                      "access plus 1 month"
 
  # CSS
    ExpiresByType text/css                              "access plus 1 month"
 
  # Data interchange
    ExpiresByType application/json                      "access plus 0 seconds"
    ExpiresByType application/xml                      "access plus 0 seconds"
    ExpiresByType text/xml                              "access plus 0 seconds"
 
  # Favicon (cannot be renamed!)
    ExpiresByType image/x-icon                          "access plus 1 week"
 
  # HTML components (HTCs)
    ExpiresByType text/x-component                      "access plus 1 month"
 
  # HTML
    ExpiresByType text/html                            "access plus 1 week"
 
  # JavaScript
    ExpiresByType application/javascript                "access plus 1 month"
 
  # Manifest files
    ExpiresByType application/x-web-app-manifest+json  "access plus 0 seconds"
    ExpiresByType text/cache-manifest                  "access plus 0 seconds"
 
  # Media
    ExpiresByType audio/ogg                            "access plus 1 month"
    ExpiresByType image/gif                            "access plus 1 month"
    ExpiresByType image/jpeg                            "access plus 1 month"
    ExpiresByType image/png                            "access plus 1 month"
    ExpiresByType video/mp4                            "access plus 1 month"
    ExpiresByType video/ogg                            "access plus 1 month"
    ExpiresByType video/webm                            "access plus 1 month"
 
  # Web feeds
    ExpiresByType application/atom+xml                  "access plus 1 hour"
    ExpiresByType application/rss+xml                  "access plus 1 hour"
 
  # Web fonts
    ExpiresByType application/font-woff                "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject        "access plus 1 month"
    ExpiresByType application/x-font-ttf                "access plus 1 month"
    ExpiresByType font/opentype                        "access plus 1 month"
    ExpiresByType image/svg+xml                        "access plus 1 month"
 
</IfModule>
 

proxydesign

Visiolist-Fan
Np, please check that it is possible to vote with the gateaway enabled. I did note this issue yesterday, and have deactivated the cache feature.
 

Basti

Administrator
Staff member
Yup gateway would cause issues, most like because of the "sid" in the browser url bar and the one in the "vote button" on the gateway dont match, as that sid is cached then
There should also be other parts, maybe plugins who dont go along with, not sure though. While i havent tested it, but i think we could exclude gateway from being cached
 
Top