Caching URLs without trailing slash (Nginx)
-
Hi,
Just enabled Falcon on a few sites, been using WordFence for a long time already.
On most sites, I take off the trailing slash in URLs, for debatable SEO reasons. I noticed in the Nginx conf that you have:
#Only cache URL's ending in / if ($request_uri !~ \/$) { set $wordfenceCacheOn 0; }Naturally, in my case, I don’t want that. But when I comment this out, only my homepage gets cached. I suppose somewhere in your code you have a similar check.
How can I reliably enable caching of URLs ending with a character that isn’t a forward slash?
What was your rationale to begin with, to only cash those ending in /? I don’t see the logic in this.
Regards,
Jay
The topic ‘Caching URLs without trailing slash (Nginx)’ is closed to new replies.