# webseiten caching, ich bekomm es nicht hin

**URL:** <https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061>\
**Category:** Shopware 3.5\
**Tags:** administration\
**Created:** [3. Februar 2012 um 20:23 UTC](https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061 "2012-02-03T20:23:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmb\_info](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mmb\_info](https://forum.shopware.com/u/mmb_info)\
**Post date:** [3. Februar 2012 um 20:23 UTC](https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061/1 "2012-02-03T20:23:40Z")

</div>

Hallo Community, ich habe folgende .htaccess: bekomme aber von sämtlichen webspeed-prüf-check-tool-seiten .) immer die rückmeldung das webseiten cachen zwischen 80-90% meine seiten besser komprimieren könnte und das ich dies aktivieren sollte… ich hab jetzt alles mögliche ( s.u.) probiert aber ohne erfolg. könnte evtl. mal jemand drüberschauen der sich damit auskennt? mein Hoster sagt : […]mod\_deflate ist bereits aktiv und kann wenn in der .htaccess gesetzt, statische Inhalte komprimieren. Für eine Ausgabekomprimierung von PHP-Skripten müssen Sie dies in PHP selbst aktivieren.[/…] Hetzner Online AG [code]  
RewriteEngine on  
#RewriteBase /shopware/  
RewriteRule shopware.dll shopware.php  
RewriteRule files/documents/.\* engine [NC,L]  
RewriteRule application.yaml engine [NC,L]  
RewriteRule images/ayww/(.\*) images/banner/1 RewriteRule sitemap.xml(.\*) shopware.php?controller=SitemapXml RewriteRule templates/.\*(css|js) engine/backend/php/sCacheTemplate.php?file=0 [NC,L] RewriteRule engine/core/php/sAjaxSearch.php engine/backend/php/sAjaxSearch.php [NC,L]  
RewriteRule engine/core/php/campaigns.php$ engine/backend/php/campaigns.php [NC,L]

RewriteCond %{REQUEST\_URI} !(engine/|images/|files/|templates/|.js$|.css$|.jpg$|.png$)  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteRule ^(.\*)$ shopware.php [PT,L,QSA]  
  
AddOutputFilterByType DEFLATE text/html  
AddOutputFilterByType DEFLATE text/plain  
AddOutputFilterByType DEFLATE text/xml  
AddOutputFilterByType DEFLATE application/xhtml+xml  
AddOutputFilterByType DEFLATE text/css  
AddOutputFilterByType DEFLATE application/xml  
AddOutputFilterByType DEFLATE image/svg+xml  
AddOutputFilterByType DEFLATE application/rss+xml  
AddOutputFilterByType DEFLATE application/atom\_xml  
AddOutputFilterByType DEFLATE application/javascript  
AddOutputFilterByType DEFLATE application/x-javascript  
AddOutputFilterByType DEFLATE application/x-httpd-php  
AddOutputFilterByType DEFLATE application/x-httpd-fastphp

```
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

```

 Header append Vary User-Agent env=!dont-vary ExpiresActive On ExpiresDefault "access plus 4 weeks" ExpiresByType image/png "access plus 3 months" ExpiresByType text/css "access plus 7 days" DirectoryIndex index.php DirectoryIndex shopware.php Deny from all Options -Indexes # Options -MultiViews # php\_value memory\_limit 128M # php\_value max\_execution\_time 18000 # php\_flag magic\_quotes\_gpc off # php\_flag session.auto\_start off # php\_flag suhosin.session.cryptua off # php\_flag zend.ze1\_compatibility\_mode Off php\_flag SecFilterEngine Off # AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php # compress text, html, javascript, css, xml: # AddOutputFilterByType DEFLATE text/plain # AddOutputFilterByType DEFLATE text/html # AddOutputFilterByType DEFLATE text/xml # AddOutputFilterByType DEFLATE text/css # AddOutputFilterByType DEFLATE application/xml # AddOutputFilterByType DEFLATE application/xhtml+xml # AddOutputFilterByType DEFLATE application/rss+xml # AddOutputFilterByType DEFLATE application/javascript # AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: SetOutputFilter DEFLATE [/code]

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [3. Februar 2012 um 20:31 UTC](https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061/2 "2012-02-03T20:31:04Z")

</div>

Hallo, hast du denn in Shopware den Shopcache mal aktiviert? Weitere Infos und Tipps auch hier: [allgemeines-f2/caching-t4290.html?hilit=Shopcache#p25385](http://forum.shopware.de/allgemeines-f2/caching-t4290.html?hilit=Shopcache#p25385)

---

<div class="post-metadata">

**Author:** ![mmb\_info](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mmb\_info](https://forum.shopware.com/u/mmb_info)\
**Post date:** [3. Februar 2012 um 20:36 UTC](https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061/3 "2012-02-03T20:36:04Z")

</div>

[quote=“Sebastian Klöpper”]Hallo, hast du denn in Shopware den Shopcache mal aktiviert?[/quote] Hallo Sebastian, ja, Shopcache steht auf: Shopcache deaktivieren:NEIN

---

<div class="post-metadata">

**Author:** ![mmb\_info](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mmb\_info](https://forum.shopware.com/u/mmb_info)\
**Post date:** [6. Februar 2012 um 09:48 UTC](https://forum.shopware.com/t/webseiten-caching-ich-bekomm-es-nicht-hin/6061/4 "2012-02-06T09:48:14Z")

</div>

Guten Morgen, habt ihr sonst evtl. noch Ideen?
