Hello!
Sorry for the left question. But why are your pictures in the cdn subdomain?
I mean cdn.domain.com. Why did you transfer all the pictures to the cdn directory? What will it give?
Sorry for my bad english. If not difficult, please answer me. Thank you, your friend from Russia!
Hi truebusinessman
I use it for cloudflare and make it easier to manage 🙂
Anonymous User 16850768
(@anonymized-16850768)
When checking your website I see an X-Cache: HIT response header:
curl -s http://www.thehinh.com/2018/12/stomach-vacuum-la-gi.html -D /dev/stdout -o /dev/null
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 29 May 2019 15:14:36 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/7.2.6
x-cache-handler: wp
Last-Modified: Wed, 29 May 2019 06:16:41 GMT
Content-Encoding: gzip
X-Cache: HIT
X-Frame-Options: SAMEORIGIN
Do you have any additional page caching configured, such as another plugin or on the server directly? If yes, you’ll want to disable this to ensure the Cache Enabler plugin is able to check the requests being made so it can deliver the accepted cached page.
Please keep in mind that images being invoked via JavaScript or CSS won’t be rewritten to use the WebP formatted version.
Hi coreyk
I just use CE for cache on my website
Thanks
Anonymous User 16850768
(@anonymized-16850768)
The Cache Enabler plugin will look for WebP formatted images on the origin server. In your case, this means when parsing your pages it’s looking for images on http://www.thehinh.com. When checking for the images on your origin server I receive 404 errors:
Original format:
curl -I http://www.thehinh.com/2018/12/stomach-vacuum-la-gi.jpg
HTTP/1.1 404 Not Found
Server: nginx
Date: Tue, 04 Jun 2019 15:05:31 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
WebP format:
curl -I http://www.thehinh.com/2018/12/stomach-vacuum-la-gi.webp
HTTP/1.1 404 Not Found
Server: nginx
Date: Tue, 04 Jun 2019 15:05:55 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/7.2.6
Set-Cookie: bp_user-role=guest; expires=Thu, 10-Feb-2033 15:05:55 GMT; Max-Age=432000000; path=/
Set-Cookie: bp_user-registered=0; expires=Thu, 10-Feb-2033 15:05:55 GMT; Max-Age=432000000; path=/
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Link: <http://www.thehinh.com/wp-json/>; rel="https://api.w.org/"
Where are the original images located on http://www.thehinh.com? If you’re using a CDN you’ll want to ensure that your images referenced in your pages are to your origin server (e.g. http://www.thehinh.com/2018/12/stomach-vacuum-la-gi.jpg) and then use a plugin, such as CDN Enabler, to rewrite the serving domain to your CDN (e.g. http://cdn.thehinh.com/2018/12/stomach-vacuum-la-gi.jpg).
Hi coreyk
the original images located on “cnd” folder at the same place with the root directory and my CDN point to this folder. So how do I get CE to know that directory?