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.695
350
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 Wir suchen Mitstreiter für ein gemeinsames Konfigurator-Projekt Dienstleistung, Jobs und Ähnliches 0
Neu Wir suchen Mitstreiter für ein gemeinsames Konfigurator-Projekt User helfen Usern - Fragen zu JTL-Wawi 5
In Diskussion Workflow für Erinnerungen an bevorstehende Lieferungen JTL-Workflows - Ideen, Lob und Kritik 0
Neu Wie stelle ich Retouren in JTL für DPD ein? JTL-ShippingLabels - Ideen, Lob und Kritik 1
Neu JTL Shop Plugin - BD Automatisierter Widerruf (Von Händler für Händler - Schluss mit Mail-Chaos & Spam-Sorgen!) Plugins für JTL-Shop 0
Wroker macht keinen abgleich für Kaufland JTL-Wawi 2.0 8
Neu Beta-Tester gesucht: Produktdaten aus Artikelfotos schneller für JTL/CSV vorbereiten Dienstleistung, Jobs und Ähnliches 0
Neu Kundengruppeneinstellungen für Mindestabnahme und Abnahmeintervall löschen User helfen Usern - Fragen zu JTL-Wawi 0
Neu Installationsdatei für JTL‑Wawi 1.9.6.5 Installation von JTL-Wawi 2
Wie lange braucht ihr aktuell für die Anlage eines neuen Artikels? JTL-Wawi App 3
Neu kostenlos: DHL Sendungsverfolgung für JTL-Wawi – Web-Dashboard mit Frühwarnsystem Schnittstellen Import / Export 0
In Diskussion Tool für Abrechnung von Fulfillment Dienstleistungen Arbeitsabläufe im Fulfillment Network 0
Neu Widerrufsbutton für JTL-Shop 4 Allgemeine Fragen zu JTL-Shop 17
Neu Keine Labels für Warenpost international über Packtisch JTL-ShippingLabels - Fehler und Bugs 8
Neu Laut Backend Shop Update für Shop 5.71 - Download nicht zu finden? Betrieb / Pflege von JTL-Shop 3
Neu Meta Shop seit September 2025: JTL-Lösung für neue Checkout-URL gesucht Allgemeine Fragen zu JTL-Shop 0
Angebliche externe Aufträge "für Rechnungserstellung freigeben" und Rechnungen erstellen. Gibt es dazu eine akzeptable Erklärung von JTL? JTL-Wawi 1.11 1
Neu Artikelname & Beschreibung angepasst für jeweiligen Marktplatz Arbeitsabläufe in JTL-Wawi 1
Neu OnFinds: KI-Suche für JTL-Shop mit fairer Abrechnung nach Artikelanzahl. 30 Tage kostenlos testen Plugins für JTL-Shop 0
API 2.1 für OnPrem? JTL-Wawi 2.0 6
Neu Dummy-ID oder Freiposition für Angebot mit mehrzeiliger Beschreibung JTL-Wawi - Ideen, Lob und Kritik 7
Neu Neue Kennzeichnungspflicht für Elektrogeräte (Altgeräterücknahme) Betrieb / Pflege von JTL-Shop 4
Neu Freelancer für JTL-Wawi, Shop & Prozessautomatisierung Dienstleistung, Jobs und Ähnliches 2
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 5
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 39
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

Ähnliche Themen