Closed gutitti closed 4 years ago
Fixed : only must disable mobile cache But how will it support mobile seperate cache in future ? because my themes has mobile conditional when mobile detected will hide some feature ( example : sidebar and footer navigation )
As per the documentation:
Specific mobile cache activated: If you activated specific cache (one for mobile and one for desktop) in WP-Rocket, HTML files (pages, posts, ...) won't be served directly because Rocket-Nginx cannot know if the request was made by mobile or desktop device.
You have to disable "Mobile caching" in WP Rocket.
But how will it support mobile seperate cache in future ? because my themes has mobile conditional when mobile detected will hide some feature ( example : sidebar and footer navigation )
It won't. There is no way for Rocket-Nginx to know if the call comes from a Desktop or a Mobile. For that reason, Rocket-Nginx cannot make the right decision to serve the right file and lets WP Rocket handle that.
header result :
i try using at location / {
or
or
But header result still X-Rocket-Nginx-Serving-Static: No
when i using cat /home/nginx/domains/domain.com/public/wp-content/cache/wp-rocket/domain.com///index-https.html file is lived and cached in folder /wp-content/cache/wp-rocket/