0
I have cached js,css and html files using nginx to improve web page performance.
how can i invalidate nginx cache for specific cache key?
I have implemented like follows:
invalidate URl:http://localhost/invalidate_cached_url/?url=[your_url] - 從nginx反向代理緩存中刪除頁面。 位置^〜/ invalidate_cached_url/{ 允許127.0.0.1; 否認所有; proxy_cache_purge nginx_cache $ arg_url; }使nginx緩存無效
when i start nginx service it is giving error "unknown directive :proxy_cache_purge".