Hi,

I am following
https://www.ryadel.com/en/nginx-purge-proxy-cache-delete-invalidate-linux-centos-7/
and https://bluegrid.io/edu/how-to-purge-the-nginx-cache/ to purge cache. I
am attaching the nginx file for your reference.

$curl -I https://gsmanginxproxycachepurge.testapicraft.com -H
"secret-header: true"

HTTP/1.1 200 OK
Server: nginx/1.20.2
Date: Thu, 28 Apr 2022 19:21:54 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Cache-Control: max-age=21600, public
Link: <https://gsmanginxproxycachepurge.testapicraft.com/>;
rel="canonical", <https://gsmanginxproxycachepurge.testapicraft.com/>;
rel="shortlink", <https://gsmanginxproxycachepurge.testapicraft.comhome>;
rel="revision"
X-UA-Compatible: IE=edge
Content-language: en
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Permissions-Policy: interest-cohort=()
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Vary: Cookie
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains
Set-Cookie:
ADRUM_BT=R%3A0%7Cg%3A5277dd0a-8de6-440a-a8f7-52fb782db25114%7Cn%3Aicebergtest_e1c60ae6-5d00-47d5-8c0a-690d8465795f%7Ci%3A129601;
expires=Thu, 28-Apr-2022 19:14:45 GMT; Max-Age=30; path=/
Last-Modified: Tue, 26 Apr 2022 11:42:25 GMT
ETag: "1650973345"
Access-Control-Allow-Origin: *

*X-Cache-Status: HIT*

I am seeing it as HIT instead of BYPASS and I am not sure about this term
between HIT vs MISS vs BYPASS vs EXPIRED in context to Nginx cache.

Please guide me. Thanks in advance.

Best Regards,

Kaushal

On Wed, Apr 27, 2022 at 2:12 AM Sergey A. Osokin <o...@freebsd.org.ru> wrote:

> Hi Kaushal,
>
> On Tue, Apr 26, 2022 at 11:54:01PM +0530, Kaushal Shriyan wrote:
> > Hi Sergey,
> >
> > I have gone through the document
> > https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/
> to
> > purge nginx cache in nginx OSS version: nginx/1.20.2  as a reverse proxy
> > server on CentOS Linux release 7.9.2009 (Core). I encounter
> >
> > nginx: [emerg] unknown directive "proxy_cache_purge" in
> > /etc/nginx/conf.d/default.conf:75
> > nginx: [emerg] unknown directive "proxy_cache_purge"
> >
> > Please guide me. Thanks in advance.
>
> Accoring to the ngx_http_proxy_module documentation [1], the
> proxy_cache_purge
> directive is available as part of the commercial subscription.
>
> References:
> [1]
> https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_purge
>
> --
> Sergey A. Osokin
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-le...@nginx.org
>

Attachment: nginxpurge.conf
Description: Binary data

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-le...@nginx.org

Reply via email to