User Tools

Site Tools


varnish:ignore-cache-control

Tutorial Varnish Cache Cara Mengabaikan Cache Control

Berdasarkan catatan kami varnish dapat mengabaikan cache control sehingga semua halaman dapat dipaksa untuk di cache oleh varnish. Adapun caranya adalah berikut ini :

unset beresp.http.Cache-Control;
set beresp.http.Cache-Control = "public";
set beresp.http.Cache-Control = "max-age=604800"; // cache selama 7 hari

Jika anda menggunakan varnish cache 4, script tersebut diatas diletakkan pada “sub vcl_backend_response”

Discussion

Enter your comment. Wiki syntax is allowed:
200 -10 = 
 

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
varnish/ignore-cache-control.txt · Last modified: 2018/03/27 09:36 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki