Forums Forums Search & Filter Pro double results in firefox & safari after using page back.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #242623

    Hi,

    I have a strange issue here. I’m using infinite scroll to load my posts. The results are shown using a shortcode and I made a copy of the results.php template.

    In safari en firefox something strange happens when you scroll to the last results, than browse to one of the posts, and then return back to the posts index ( using back button in browser). This browsers ‘cache’ the last state of the page , so all posts are shown and the ‘you’ve reached the end’ message is shown.
    However, when you scroll down some more, double posts are loaded and the ‘youve reached the end’ message is shown again.
    Example:
    Backbutton cache

    You can test the issue here:
    https://aanbod.nlverhuist.nl/

    1. scroll down to the end.
    2. open a post
    3. use back button ( in firefox )
    4. scroll up and down some more. latest 3 posts are double results

    Post order is not set to random. The issue here is the backbutton cache in this browsers.
    Is there any way to force a reload of the complete results ?

    Anonymous
    #242633

    I found a solution by adding this to my .htaccess file:

    Header set Cache-Control “max-age=0, private, no-store, no-cache, must-revalidate”

    However, this makes my site quite slow.. images, filters etc are reloaded on every refresh.
    Better would be that the infinite scrolling script would ‘recognize’ that all results are already loaded (after using the backbutton), to prevent double posts from showing up ..

    Trevor
    #242650
    This reply has been marked as private.
    Anonymous
    #242682
    This reply has been marked as private.
    Trevor
    #242684

    Thanks for letting me know. I will close this thread for now.

Viewing 5 posts - 1 through 5 (of 5 total)