fixing bug where previewing would cache the page and allow public access