Benutzer-Werkzeuge

Webseiten-Werkzeuge


plesk:send-cache-headers-for-all-static-files-served-by-nginx

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
plesk:send-cache-headers-for-all-static-files-served-by-nginx [2016/04/09 08:46]
admin
plesk:send-cache-headers-for-all-static-files-served-by-nginx [2016/04/09 08:56] (aktuell)
admin
Zeile 28: Zeile 28:
 $ /​usr/​local/​psa/​admin/​bin/​httpdmng --reconfigure-all $ /​usr/​local/​psa/​admin/​bin/​httpdmng --reconfigure-all
 </​code>​ </​code>​
 +
 +optionally, verify the new conf has your additions
 +<​code>​
 +$  cat /​var/​www/​vhosts/​sampledomain.tld/​conf/​nginx.conf | grep 30d
 +</​code>​
 +
 +<​code>​
 +$  curl -I -L -H '​Accept-Encoding:​ gzip,​deflate'​ https://​sampledomain.tld/​pathto/​a-stati-file.css
 +</​code>​
 +
 +you should see '​Expires On' date in the response
 +
 +from now on, for every filetype described in the plesk panel in the field 'Serve Static files through nginx' will get the cache headers, to tell the browser to keep them.
 +
 +
 +
   * [1] http://​docs.plesk.com/​en-US/​12.5/​advanced-administration-guide-linux/​virtual-hosts-configuration/​changing-virtual-hosts-settings-using-configuration-templates.68693/​   * [1] http://​docs.plesk.com/​en-US/​12.5/​advanced-administration-guide-linux/​virtual-hosts-configuration/​changing-virtual-hosts-settings-using-configuration-templates.68693/​
   * [2] http://​docs.plesk.com/​en-US/​12.5/​advanced-administration-guide-linux/​appendix-b-configuration-templates-structure.68820/​   * [2] http://​docs.plesk.com/​en-US/​12.5/​advanced-administration-guide-linux/​appendix-b-configuration-templates-structure.68820/​
plesk/send-cache-headers-for-all-static-files-served-by-nginx.txt · Zuletzt geändert: 2016/04/09 08:56 von admin