Welcome! Log In Create A New Profile

Advanced

Re: Reverse cache not working on start pages (solution founD)

October 12, 2017 05:34AM
Sounds like the problem is that you don’t have nginx configured to enforce canonical urls.
What do I mean by this?

Imagine that every page on the site has one and only one “correct URL”

So someone might type

http://www.mydomain.com
http://mydomain.com
http://www.mydomain.com/index.html

and expect to see the same page. A site that enforces canonical URLs would do a redirect
from the non-canonical URL so the web server end up being queried of the canonical URL,
which would be cached correctly.

There is one good and one blah reason to do this. The first (good) reason is about predictability,
and making easy to solve problems. The second reason is for better SEO, though there are
other techniques to solve it.

There are so many things that can go wrong or trip us up on websites which is why ensuring
predictability whenever possible reduces the population of potential error causes.

Peter


> On Oct 12, 2017, at 4:52 AM, Dingo <nginx-forum@forum.nginx.org> wrote:
>
> I found the solution, but I don't understand what it does. When I add:
>
> proxy_cache_key "$host$uri$is_args$args";
>
> To a location block it magically works. I have no clue what happens, it was
> just a snippet I found on the Internet used by some other guy setting up a
> reverse proxy with cache.
>
> And thanks to Maxim and pbooth for trying to help me.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276670,276833#msg-276833
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

Reverse cache not working on start pages

Dingo October 04, 2017 04:32AM

Re: Reverse cache not working on start pages

Dingo October 04, 2017 05:42AM

Re: Reverse cache not working on start pages

Dingo October 04, 2017 06:01AM

Re: Reverse cache not working on start pages

Maxim Dounin October 04, 2017 11:40AM

Re: Reverse cache not working on start pages

pbooth October 04, 2017 11:58AM

Re: Reverse cache not working on start pages

Dingo October 12, 2017 04:45AM

Re: Reverse cache not working on start pages

Dingo October 12, 2017 04:44AM

Re: Reverse cache not working on start pages (solution founD)

Dingo October 12, 2017 04:52AM

Re: Reverse cache not working on start pages (solution founD)

pbooth October 12, 2017 05:34AM

Re: Reverse cache not working on start pages (solution founD)

Dingo October 12, 2017 07:26AM

Re: Reverse cache not working on start pages (solution founD)

Lucas Rolff October 12, 2017 07:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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