Welcome! Log In Create A New Profile

Advanced

Re: cookie cache

ExH
March 09, 2010 08:09AM
Перечитал свой пост и понял что не совсем понятно что я понимаю под кешированием.
Я пытаюсь кешировать страницу используя следующий код:
[code]
server {
listen 80;
server_name my.server.ru;

set $root /home/server/domains/my.server.ru/public_html;

root $root;

location / {
index index.php index.html index.htm;
}

location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/server.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $root;
include fastcgi_params;

fastcgi_cache wholepage;
fastcgi_cache_valid 200 301 302 304 5m;
fastcgi_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri|$cookie_skin_lang|$cookie_mnm_key";
fastcgi_hide_header "Set-Cookie";
fastcgi_ignore_headers "Cache-Control" "Expires";
}

location ~ /\.ht {
deny all;
}
}
[/code]
Subject Author Posted

cookie cache

ExH March 09, 2010 07:45AM

Re: cookie cache

ExH March 09, 2010 08:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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