Welkom bij Joomla!NL

Om alle mogelijkheden van dit forum te kunnen gebruiken, moet je je eerst registreren.

Vermeld in iedere vraag duidelijk:
  1. De versie van Joomla! 3.X die je gebruikt
  2. De volledige url van je website indien mogelijk.
  3. De versie van de extensie waar de vraag over gaat.

opgelost Gzip + cache werkt niet

Gzip + cache werkt niet

03 apr 2015 11:29
#1
Hallo,

Ik gebruik joomla 3.4 (ga straks updaten) en VM 3.0.6.2

Ik probeer mijn laadtijd van de website te versnellen. Ik heb gzip en cache aangezet, maar ik krijg bij pagespeed insights te zien dat deze beide niet zijn ingeschakeld. Ik heb ook een test gedaan op om te kijken of gzip compressie aanstaat en hier wordt aangegeven dat deze niet werkt. Daarentegen heb ik gzip en cache geactiveerd in algemene instellingen. Daarnaast heb ik ook de instellingen in pluginbeheer van cache gecheckt en dit is ook allemaal in orde.

Wat kan het euvel zijn?
Discussie gesloten.
  • roydjah
  • roydjah's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 50

Gzip + cache werkt niet

03 apr 2015 12:24
#2
Gzip heb ik kunnen oplossen. Van de hosting partij de volgende code gehad:
Code:
<IfModule mod_deflate.c> # Insert output filter by type AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml AddOutputFilterByType DEFLATE application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE application/cgi-php5 AddOutputFilterByType DEFLATE application/cgi-php53 AddOutputFilterByType DEFLATE application/cgi-php54 # Don't compress images, compressed files, docs nor movies SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:pdf|doc)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:avi|mov|mp3|mp4|rm)$ no-gzip dont-vary </IfModule> #php_flag zlib.output_compression on

Nu werkt het, maar cache nog altijd niet. Er wordt aangegeven bij Pagespeed insights dat ik de browser caching aan moet zetten en bij verschillende url's staat dit achter: (maximum duur niet gespecificeerd)
Discussie gesloten.
  • roydjah
  • roydjah's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 50

Gzip + cache werkt niet

03 apr 2015 13:21 - 03 apr 2015 13:22
#3
Ik hoop hier anderen ook mee te kunnen helpen.

Heel veel gestruind de afgelopen dagen, maar uiteindelijk en goed artikel gevonden. Deze code ingevoegd en alles is in orde!
Code:
######### Begin - ETag Optimization ## This rule will create an ETag for files based only on the modification ## timestamp and their size. ## Note: It may cause problems on your server and you may need to remove it FileETag MTime Size # AddOutputFilterByType is now deprecated by Apache. Use mod_filter in the future. AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript # Enable expiration control ExpiresActive On # Default expiration: 1 hour after request ExpiresDefault "now plus 1 hour" # CSS and JS expiration: 1 week after request ExpiresByType text/css "now plus 1 week" ExpiresByType application/javascript "now plus 1 week" ExpiresByType application/x-javascript "now plus 1 week" # Image files expiration: 1 month after request ExpiresByType image/bmp "now plus 1 month" ExpiresByType image/gif "now plus 1 month" ExpiresByType image/jpeg "now plus 1 month" ExpiresByType image/jp2 "now plus 1 month" ExpiresByType image/pipeg "now plus 1 month" ExpiresByType image/png "now plus 1 month" ExpiresByType image/svg+xml "now plus 1 month" ExpiresByType image/tiff "now plus 1 month" ExpiresByType image/vnd.microsoft.icon "now plus 1 month" ExpiresByType image/x-icon "now plus 1 month" ExpiresByType image/ico "now plus 1 month" ExpiresByType image/icon "now plus 1 month" ExpiresByType text/ico "now plus 1 month" ExpiresByType application/ico "now plus 1 month" ExpiresByType image/vnd.wap.wbmp "now plus 1 month" ExpiresByType application/vnd.wap.wbxml "now plus 1 month" ExpiresByType application/smil "now plus 1 month" # Audio files expiration: 1 month after request ExpiresByType audio/basic "now plus 1 month" ExpiresByType audio/mid "now plus 1 month" ExpiresByType audio/midi "now plus 1 month" ExpiresByType audio/mpeg "now plus 1 month" ExpiresByType audio/x-aiff "now plus 1 month" ExpiresByType audio/x-mpegurl "now plus 1 month" ExpiresByType audio/x-pn-realaudio "now plus 1 month" ExpiresByType audio/x-wav "now plus 1 month" # Movie files expiration: 1 month after request ExpiresByType application/x-shockwave-flash "now plus 1 month" ExpiresByType x-world/x-vrml "now plus 1 month" ExpiresByType video/x-msvideo "now plus 1 month" ExpiresByType video/mpeg "now plus 1 month" ExpiresByType video/mp4 "now plus 1 month" ExpiresByType video/quicktime "now plus 1 month" ExpiresByType video/x-la-asf "now plus 1 month" ExpiresByType video/x-ms-asf "now plus 1 month"
Laatst bewerkt 03 apr 2015 13:22 door roydjah.
Discussie gesloten.
  • roydjah
  • roydjah's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 50
Moderators: PeterJuliank92JelleRomke
Tijd voor maken pagina: 1.360 seconden

Wil je Joomla!NL steunen?

Steun Joomla!NLAlle teamleden werken enthousiast, op vrijwillige basis, mee aan Joomla!NL. Maar een website met forum kost nu eenmaal geld. Dus als je Joomla!NL wilt steunen, dan kan dat, graag zelfs!

Lees hier meer informatie