Checking if is preview page before getting and setting cache

Fixes #5