This should fix the infinite scroll on apache servers

This should fix the infinite scroll problem on apache servers. Should be tested first.