caching - Exclude directory from nginx cache headers via "Additional nginx directives" on Plesk VPS -
i'm running joomla site running on plesk vps apache + nginx. in "web server settings" in plesk domain under "additional nginx directives" (which override server-wide nginx configuration) have specified:
add_header cache-control "private, max-age=604800, must-revalidate";
all works , site gets served proper cache headers added , google pagespeed stopped complaining - i'm getting errors back-end functions such when uploading batches of images website's gallery. seems related above works again when directive removed.
how can re-write additional nginx directive above exclude /administrator/ directory of site having cache headers added nginx?
use location block negates path don't want header added to:
location ^~ /administrator/ { add_header cache-control "private, max-age=604800, must-revalidate"; }
Comments
Post a Comment