Welcome! Log In Create A New Profile

Advanced

Re: Purge the Nginx cache

All files from this thread

File Name File Size   Posted by Date  
nginxdefault.conf 5.1 KB open | download kaushalshriyan 04/26/2022 Read message
nginxpurge.conf 5.2 KB open | download kaushalshriyan 04/28/2022 Read message
nginxdefault.conf 5.1 KB open | download kaushalshriyan 05/03/2022 Read message
nginx.conf.bypass 5.4 KB open | download kaushalshriyan 05/03/2022 Read message
April 28, 2022 03:30PM
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 <osa@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-leave@nginx.org
>
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Attachments:
open | download - nginxpurge.conf (5.2 KB)
Subject Author Posted

Purge the Nginx cache

kaushalshriyan April 22, 2022 12:38PM

Re: Purge the Nginx cache

Sergey A. Osokin April 22, 2022 01:02PM

Re: Purge the Nginx cache

kaushalshriyan April 22, 2022 01:32PM

Re: Purge the Nginx cache

Sergey A. Osokin April 22, 2022 01:42PM

Re: Purge the Nginx cache

kaushalshriyan April 22, 2022 01:56PM

Re: Purge the Nginx cache Attachments

kaushalshriyan April 26, 2022 02:02PM

Re: Purge the Nginx cache

kaushalshriyan April 26, 2022 02:28PM

Re: Purge the Nginx cache

Sergey A. Osokin April 26, 2022 04:44PM

Re: Purge the Nginx cache Attachments

kaushalshriyan April 28, 2022 03:30PM

Re: Purge the Nginx cache

kaushalshriyan April 29, 2022 02:20PM

Re: Purge the Nginx cache

kaushalshriyan May 02, 2022 03:10PM

Re: Purge the Nginx cache

Francis Daly May 03, 2022 04:30AM

Re: Purge the Nginx cache Attachments

kaushalshriyan May 03, 2022 06:34AM

Re: Purge the Nginx cache

Francis Daly May 03, 2022 08:02AM

Re: Purge the Nginx cache Attachments

kaushalshriyan May 03, 2022 12:22PM

Re: Purge the Nginx cache

Francis Daly May 04, 2022 09:10AM

Re: Purge the Nginx cache

Tammymeans May 17, 2022 08:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready