-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

I'm struggling with fastcgi_cache, the cache will be valid and got
'HIT' status if I'm writing simple PHP code. Like `phpinfo` or
printing `date`.

My fastcgi parameter are looks like this
http://fpaste.org/293267/19588614/raw/

I send the request using HEAD :
$ HEAD
domain.tld/artikel/berita/wakil-gubernur-yogyakarta-paku-alam-ix-mangkat
200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Connection: close
Date: Sun, 22 Nov 2015 12:39:19 GMT
Pragma: no-cache
Server: nginx
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Client-Date: Sun, 22 Nov 2015 12:39:19 GMT
Client-Peer: 103.52.3.18:80
Client-Response-Num: 1
Set-Cookie: PHPSESSID=8eae558pdl8o0p78k6s9n8nkv2; path=/
X-Backend-Cache: MISS
X-Response: 1448195959.467

I'm curious, the framework (Laravel 5.1) set header `Cache-Control` to
not cache every request. If yes, can nginx override the header? I've
set it, but it comes double.

If try using `fastcgi_ignore_headers` and `fastcgi_hide_header`, but
still no luck. The response from nginx still MISS.

Any hints and helps are appreciated. :)

Regards,
Dewangga
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJWUbhTAAoJEF1+odKB6YIxKrEH/jcuSey9sUCbgSfVtejDDt+V
qfa187JDyzoG6xjIy2WsgCCvuViBAQA0UB0exKJECnO/Mk3Y2/N2n0ZyImpzLta9
l27oAtkNGMR/fb4Qw3VBAUasxbJ+ZmAaabyc801LYXMwKJ43dSGd2/H0TTQaZM1p
JRMTLI0GQXn/TnHL/v0wTbKOQgYx4xvzrn3UxzmLV5SUT2A0bMOfz152SAPRuFG2
akvsDUZB3GetKjRPbMwlW2qc6MGW0olzdQdqnGbAUKAAXd2XtS/XTDU67H3QMgCt
0pXFtLR7VaRcFQb4v9LjxFnrfUp4KSZ/nnjkDv+hXAUh9lc3mzOh0YH0qrto120=
=N6Un
-----END PGP SIGNATURE-----

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to