visitors coming from facebook no cache
-
Facebook now adds a tracking parameter with unique id for every visitor (?fbclid=xxx) to all outgoing urls on facebook.
Does this mean that these visitors will not get served a cached page?
-
No. It shouldn’t.
When I add the parameter my pages take 1000ms longer to load (compared to no query, both loaded without browser cache). That led to my assumption that these aren’t loaded from cache. So maybe there is a different cause for this.
can you send me a sample url please?
I ran some more tests (reset browser cache after each test), and with a random parameter the webpage takes more than twice as long to load.
-
This reply was modified 6 years, 5 months ago by
tschopo.
WP Fastest Cache does not create cache if a url contains querystring.
I will implement it and let you know.
I fix the problem. You need to delete wp fastest cache and install the following version to get the latest changes.
cool! I like the solution (redirecting to base url if fbclid). But if I share
In this case, I don’t want to be redirected to base. Maybe a better approach is:
RewriteEngine on RewriteBase / RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=[^&]+&?(.*)$ [NC] RewriteRule ^(.*)$ /$1?%1%2 [R=301,L,NE]
In that case
http://test.kinder-verstehen.de/mein-werk/blog/neues-zum-plotzlichen-kindstod-sids/?print=1&fbclid=xxx
gets redirected tohttp://test.kinder-verstehen.de/mein-werk/blog/neues-zum-plotzlichen-kindstod-sids/?print=1
andhttp://test.kinder-verstehen.de/mein-werk/blog/neues-zum-plotzlichen-kindstod-sids/?fbclid=xxx
gets redirected tohttp://test.kinder-verstehen.de/mein-werk/blog/neues-zum-plotzlichen-kindstod-sids/
-
This reply was modified 6 years, 5 months ago by
tschopo.
Actually I have done the same solution on the google Google Analytics Parameter as well.
According to me redirection is not a good solution. Isn’t my solution enough for you?
I did not see that it is done this way. Your solution is better.
ok 🙂
Hi Emre,
great solution for ignoring the annoying fbclid problem. It is a huge problem for the most cache plugins they don’t serve ?fbclid=xyz URL-s, from cache.
I hope this function will be included in the future versions of WP Fastest Cache.
Would be a good idea to implement it for the gclid as well, or give the users a text field wher they can put themselves which query strings they want to ignore.
Thanks!
you are welcome 🙂 if you vote, you make me so happy.
-
This reply was modified 6 years, 5 months ago by
- The topic ‘visitors coming from facebook no cache’ is closed to new replies.