Now when i'm entering the site browser immediately redirects me to the second route with the cached city.
And what i need is that everytime the user requests '/' it must go to the first route and then to the second. But now it's not getting city from cookie if it's there....
okololo.ru - here is website.
In the config i have set'cache' => 'none'but with that also works the same(
Hello!
I have problems with caching.
I have to routes like so:
First route getting the location and redirecting to the second route:
return redirect(route('city', [$city]), 301);
In the first routes method i have statement that checks cookie if it has a variable city and if not:
Now when i'm entering the site browser immediately redirects me to the second route with the cached city. And what i need is that everytime the user requests '/' it must go to the first route and then to the second. But now it's not getting city from cookie if it's there.... okololo.ru - here is website.
In the config i have set
'cache' => 'none'
but with that also works the same(sorry for my english :(