Replace paths with regexes on slugs for bypassing cache