Welcome! Log In Create A New Profile

Advanced

Re: Как очистить кэш Nginx

Lystopad Aleksandr
January 08, 2017 08:16AM
Hello, Seriyyy95!

On Sun, Jan 08, 2017 at 05:42:02AM -0500
nginx-forum@forum.nginx.org wrote about "Re: Как очистить кэш Nginx":
> Сделал так, как вы сказали:
>
> location = /style.css {
> root
> /var/www/losst/data/www/losst.ru/wp-content/themes/themes/arcade-basic-child/;
> expires -1;
> access_log /var/log/nginx/access_css_exclude.log css;
> }
>
> Вот что в логе:
>
> 37.52.110.246 - - [08/Jan/2017:13:34:30 +0300] "GET /style.css HTTP/1.1" 200
> 9991 "-" "Wget/1.14 (linux-gnu)"
> "/var/www/losst/data/www/losst.ru/wp-content/themes/themes/arcade-basic-child"
> "/style.css" "" "/style.css" "-" "-" "37.52.110.246"
> "/var/www/losst/data/www/losst.ru/wp-content/themes/themes/arcade-basic-child"
>
> Возвращается старая версия. Из этого можно сделать вывод что wordpress

Стоп, а сам файл новый в этой директории?

> вообще не причем. Это было ясно еще тогда, когда я отключал php и тоже
> возвращался старый файл. Как бы он его возвратил без php? Вот еще лог для
> версии location по умолчанию:

> 178.65.1.134 - - [08/Jan/2017:13:19:58 +0300] "GET
> /wp-content/themes/themes/arcade-basic/style.css HTTP/1.1" 200 28748
> "https://losst.ru/wp-content/themes/themes/arcade-basic-child/style.css?x29372"
> "Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0"
> "/var/www/losst/data/www/losst.ru"
> "/wp-content/themes/themes/arcade-basic/style.css" ""
> "/wp-content/themes/themes/arcade-basic/style.css" "-" "-" "178.65.1.134"
> "/var/www/losst/data/www/losst.ru"

Вы понимаете, что у вас разные location будут обрабатывать два разных
запроса:

GET /style.css HTTP/1.1
GET /wp-content/themes/themes/arcade-basic/style.css HTTP/1.1

?
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Как очистить кэш Nginx

Seriyyy95 January 04, 2017 01:03PM

Re: Как очистить кэш Nginx

Anton Gorlov January 04, 2017 01:52PM

Re: Как очистить кэш Nginx

Seriyyy95 January 04, 2017 01:55PM

Re: Как очистить кэш Nginx

SK January 04, 2017 02:12PM

Re: Как очистить кэш Nginx

Seriyyy95 January 04, 2017 02:19PM

Re: Как очистить кэш Nginx

Lystopad Aleksandr January 04, 2017 03:16PM

Re: Как очистить кэш Nginx

Seriyyy95 January 06, 2017 11:21AM

Re: Как очистить кэш Nginx

Dmitry Ivanov January 06, 2017 12:02PM

Re: Как очистить кэш Nginx

Lystopad Aleksandr January 07, 2017 12:22PM

Re: Как очистить кэш Nginx

Seriyyy95 January 08, 2017 05:42AM

Re: Как очистить кэш Nginx

Lystopad Aleksandr January 08, 2017 08:16AM

Re: Как очистить кэш Nginx

Seriyyy95 January 08, 2017 08:33AM

Re: Как очистить кэш Nginx

Seriyyy95 January 08, 2017 10:17AM

Re: Как очистить кэш Nginx

Lystopad Aleksandr January 08, 2017 11:56AM

Re: Как очистить кэш Nginx

vitcool January 04, 2017 04:44PM

Re: Как очистить кэш Nginx

Seriyyy95 January 07, 2017 07:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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