Browser Cache für JS im Template-Ordner Shop 4.0.2

TheOggy

Sehr aktives Mitglied
6. Oktober 2009
1.030
99
Berlin
Hi,

kämpfe gerade etwas mit dem Browser Cache und bekomme es für ein paar Dateien nicht hin, ohne das Google oder Webpagetest meckern.

hier meine htaccess
Code:
<IfModule mod_expires.c>
 ExpiresActive On
 ExpiresByType text/css "access plus 1 month"
 ExpiresByType text/javascript "access plus 1 month"
 ExpiresByType text/html "access plus 1 month"
 ExpiresByType application/javascript "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 image/x-icon "access plus 1 month"
</IfModule>
<ifmodule mod_headers.c>
 <filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
  Header set Cache-Control "max-age=2592000, public"
 </filesmatch>
 <filesmatch "\\.(css)$">
  Header set Cache-Control "max-age=604800, public"
 </filesmatch>
 <filesmatch "\\.(js)$">
  Header set Cache-Control "max-age=216000, private"
 </filesmatch>
</ifmodule>

# Deflate Compression by FileType
<IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE text/plain
 AddOutputFilterByType DEFLATE text/html
 AddOutputFilterByType DEFLATE text/xml
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE text/javascript
 AddOutputFilterByType DEFLATE application/xml
 AddOutputFilterByType DEFLATE application/xhtml+xml
 AddOutputFilterByType DEFLATE application/rss+xml
 AddOutputFilterByType DEFLATE application/atom_xml
 AddOutputFilterByType DEFLATE application/javascript
 AddOutputFilterByType DEFLATE application/x-javascript
 AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>

hier die problematischen dateien
Code:
FAILED - ([B]No max-age or expires[/B]) - https://fonts.googleapis.com400,300
FAILED - ([B]No max-age or expires[/B]) - http://xxxx/templates/Evo/fonts/fontawesome-webfont.eot?v=4.4.0
FAILED - ([B]No max-age or expires[/B]) - http://xxxx/templates/Evo/fonts/fontawesome-webfont.woff2?v=4.4.0
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jtl.gallery.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/typeahead.bundle.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jtl.io.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jtl.article.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/photoswipe.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jtl.basket.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/slick.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/includes/plugins/jtl_debug/version/100/frontend/js/jtl-debug.js?v=1453198734
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/global.js?v=1453372881
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/spin.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jtl.evo.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/imgViewer.js?v=1453372881
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-hover-dropdown.min.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.waitforimages.js?v=1453372879
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.lazy.js?v=1453372878
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.nivo.slider.pack.js?v=1453372878
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.offcanvas.js?v=1453372878
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.backstretch.min.js?v=1453372881
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.dimension.js?v=1453372881
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.serialize-object.js?v=1453372878
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap.min.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-toolkit.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-select.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-grid.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-modal.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-tabdrop.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/bootstrap-slider.js?v=1453372880
WARNING - ([B]2.5 days[/B]) - http://xxxx/templates/Evo/js/jquery.touch.min.js?v=1453372879

System ist ein Testshop von uns mit 4.0.2.
Habe gesehen, dass der Template Ordner noch eine eigene htaccess Datei hat. Was mir aber nicht geholfen hat.

Jemand eine Idee?
danke und Gruß Tobi
 

martinwolf

Offizieller Servicepartner
SPBanner
6. September 2012
3.686
344
AW: Browser Cache für JS im Template-Ordner Shop 4.0.2

Den Wert für

Code:
 <filesmatch "\\.(js)$">
  Header set Cache-Control "max-age=[COLOR=#ff0000][B]216000[/B][/COLOR], private"
 </filesmatch>

ebenfalls auf 604800 setzen (7 Tage).
 
Ähnliche Themen
Titel Forum Antworten Datum
Neu Strange browser crashes and login session issues while running multiple web applications User helfen Usern 0
Keine Rückmeldung in JTL Wawi sobald SQL Server Memory durch Database Cache ausgeslastet ist JTL-Wawi 2.0 9
Neu Neue Kennzeichnungspflicht für Elektrogeräte (Altgeräterücknahme) Betrieb / Pflege von JTL-Shop 0
Neu Freelancer für JTL-Wawi, Shop & Prozessautomatisierung Dienstleistung, Jobs und Ähnliches 0
Neu Exportgenehmigung / Ausfuhrgenehmigung automatisch für Auslandskunden als Aufpreis Allgemeine Fragen zu JTL-Shop 2
Für Ihren SQL-Server wurde ein Service Pack zur Verfügung gestellt - nö, gelogen, wie kriege ich die Meldung weg? JTL-Wawi 1.11 15
Neu Ab welcher JTL Wawi Version ist der OnPremise REST API Endpoint POST /v2/returns oder POST /v1/returns für Create Return verfügbar? Schnittstellen Import / Export 0
Neu Seller2Go – Mobile App & JTL-Plugin für Bestellungen, Support und Produktmanagement Plugins für JTL-Shop 0
Neu Neues Plugin: Erweiterter Widerrufsbutton für JTL-Shop Plugins für JTL-Shop 9
JTL-Worker 2.0 - Einrichtung als Dienst - Auffälligkeiten und Problemlösungen für manche JTL-Wawi 2.0 3
Neu Muss man für DHL Versenden 4.0 einen neuen Benutzer bei DHL anlegen? JTL-ShippingLabels - Ideen, Lob und Kritik 2
Neu Retourenetikett für Briefe kann unter Internetmarke 2.0 nicht erstellt werden JTL-ShippingLabels - Fehler und Bugs 0
Neu Neue Tracking-URL für DPD JTL-ShippingLabels - Fehler und Bugs 4
AboutYou keine Felder für GPSR Daten SCX-(Ninepoint)-Anbindungen 0
globale Angebotsvorlage anpassen für eBay Angebote "Artikelspezifisch" JTL-Wawi 1.11 0
Neu Connectorupdates für Shopware 6.7.7 bzw 6.7.8? Shopware-Connector 34
Neu Streichpreise oder Rabatte für Staffelpreise von einem Artikel einrichten? Wie am Besten? JTL-Wawi 1.6 0
Neu DRIGEND HILFE!!! Ebay Abgleich endet mit Arithmetischer Überlauffehler für tinyint-Datentyp, Wert = -1. Die Anweisung wurde beendet. eBay-Anbindung - Fehler und Bugs 4
Neu Stornobeleg für Verkauf ohne Rechnung User helfen Usern - Fragen zu JTL-Wawi 9
Neu Neuentwicklung - Helpdesk für JTL Wawi - Eure Ideen und Wünsche? User helfen Usern - Fragen zu JTL-Wawi 4
Kein changelog für 1.11.8 JTL-Wawi 1.11 29
Text Vorbereitung für WAWI import JTL-Wawi 1.11 3
gelöst: Für diesen User wurde zum angegebenen Mandanten keine Firma gefunden!! JTL-Wawi 1.10 13
Neu Best Practices für den Export und die Automatisierung von täglichen Berichten in JTL‑WaWi User helfen Usern - Fragen zu JTL-Wawi 2
Mobile Web-App für JTL-WaWi — Aufträge, Artikel & Lager direkt vom Smartphone JTL-Wawi App 0
Neu Hilfe bei der Entwicklung gesucht: Werde Tester für meine JTL-Shop Plugins Plugins für JTL-Shop 0
Neu Workflow automatisch bei Warenausgang für Bestand und Puffer JTL-Wawi - Ideen, Lob und Kritik 12
Neu Für fiktive paginierte Kategorieseiten 404 statt 301 Allgemeine Fragen zu JTL-Shop 0
Neu Paypal Checkout Modul für Gambio bis GX 26.x Gambio-Connector 0
Neu Verlinkungen richtig setzen für mehrere Sprachen Allgemeine Fragen zu JTL-Shop 10
Neu JTW Wawi hängt beim Bearbeiten der Druckvorlage für Mahnungen User helfen Usern - Fragen zu JTL-Wawi 0
Neu Wero für den JTL Shop? Plugins für JTL-Shop 21
Neu Bilder von Plattform A auch für Plattform B aktivieren Arbeitsabläufe in JTL-Wawi 6
Neu Exchange Konto kann nicht eingerichtet werden für E-Mail Versand User helfen Usern - Fragen zu JTL-Wawi 2
weitere Angaben für eBay JTL-Wawi 1.11 1
Neu Versandklassen für Kategorien / Unterkategorien bzw. Artikel im Warenkorb User helfen Usern - Fragen zu JTL-Wawi 0
Neu Freelancer gesucht für Artikelpflege ( Herstellerkataloge / Preisänderungen einspielen) Dienstleistung, Jobs und Ähnliches 3
JTL-WAWI Datenbankprofil für neue Windows Benutzer JTL-Wawi 1.11 2
Neu Für die Weiterentwicklung und Betreuung unserer bestehenden Systemlandschaft suchen wir einen erfahrenen Freelancer (m/w/d) mit fundierten Kenntnissen JTL-Wawi App 1
Neu Platzhalter für OPC-Portlets in Seitentext einbauen Allgemeine Fragen zu JTL-Shop 1
Neu kann man JTL POS alleine nutzen für 29 Euro? Einrichtung / Updates von JTL-POS 0
Neu OSS aktiv – Ausnahme für Eventtickets mit deutschem Leistungsort möglich? Allgemeine Fragen zu JTL-Shop 6
Neu Lösung nötig für JTL 1.11+ !!! Fragen rund um LS-POS 3
Neu Widerrufsformular als kostenloses Plugin für Shops ab 5.1.5 Plugins für JTL-Shop 11
Aktuelles Update 1.11.7: Anmeldedialog merkt sich den letzten User immer noch nicht & falsche Warnung für angeblich fehlendes SQL Server Update JTL-Wawi 1.11 3

Ähnliche Themen