Applicable to:
- Plesk for Linux
Symptoms
-
Additional nginx directives/Leverage browser caching are set under Domains > example.com > Apache & nginx Settings for a WordPress website.
For example:CONFIG_TEXT: location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ {
expires 30d;
add_header Pragma "public";
add_header Cache-Control "public";
} - Expiration headers are not applied
-
The website has Hotlink protection security measure enabled at Domains > example.com > WordPress > Security.
-
curl
utility shows that HTTP headers set in Additional nginx directives are not configured for files with extensions like.jpg
,.png
,.css
, etc.# curl -I -c - "https://example.com/path-to-file.jpg" -k
HTTP/2 200
server: nginx
date: Fri, 21 Dec 2018 10:41:47 GMT
content-type: image/jpeg
content-length: 173018
last-modified: Wed, 19 Dec 2018 16:36:53 GMT
etag: "5c1a73a5-2a3da"
x-powered-by: PleskLin
accept-ranges: bytes
Cause
Hotlink Protection security measure no longer overrides the additional nginx directives on a domain. This is Plesk bug #EXTWPTOOLK-2305 fixed in WordPress Toolkit 3.6.0 on February 21st, 2019.
Resolution
Install WordPress Toolkit updates.
Comments
0 comments
Please sign in to leave a comment.