Forum optimieren

Alles, was in den anderen Foren keinen Platz findet
WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Forum optimieren

Beitragvon WBTMagnum » Fr 18. Apr 2014, 09:47

Hey,

Falls mal jemand mit Zugriff auf den Forums Server mal etwas Zeit hat, wäre es super folgende oder ähnliche Optimierungen in der VHost Konfig des Apachen oder via .htaccess zu aktivieren:

Code: Alles auswählen

<IfModule mod_deflate.c>
  ### activate gzip compression
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/php text/xml
  AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/x-js text/javascript
</IfModule>

<IfModule mod_expires.c>
  ### turn on the Expires engine
  ExpiresActive On

  ### expires after 30 days in the client's cache
  ExpiresByType image/gif A2592000
  ExpiresByType image/png A2592000
  ExpiresByType image/jpg A2592000
  ExpiresByType image/jpeg A2592000
  ExpiresByType image/x-icon A2592000
  ExpiresByType image/vnd.microsoft.icon A2592000
  ExpiresByType application/pdf A2592000
  ExpiresByType application/x-javascript A2592000
  ExpiresByType text/x-js A2592000
  ExpiresByType text/plain A2592000
  ExpiresByType text/css A2592000
  ExpiresByType text/javascript A2592000
</IfModule>
Damit werden die Expire Header der Ressourcen auf 30 Tage gesetzt (mod_expires) sowie die gzip Kompression aktiviert (mod_deflate). Mit den Maßnahmen sollte das Forum dann noch besser "flutschen". Die Wirksamkeit kann z.B. mittels YSlow überprüft werden.


Liebe Grüße,
Sascha

ThomasGoebe

Re: Forum optimieren

Beitragvon ThomasGoebe » Fr 18. Apr 2014, 13:19

super, danke. Machen wir, sobald die nötigen Änderungen am neuen Theme fertig sind (sonst werden Änderungen erst nach 30 Tagen sichtbar...). Da ist schon jemand dran, kommt bald.

Eigentlich hat das Forum auch einen eingebauten Cache, aber der scheint mit dem neuen Theme auch nur bedingt zu funktionieren.


Zurück zu „Off-Topic & Smalltalk“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 5 Gäste