fix of invalid cache tag

Fixes the cache tag issue by including it into the checkes before and returning a 404.