The output cache is associated with the controller, not the view. The controller may return different views based on the passed parameters. Caching can also be done using parameters (for example, in your example). When the controller caches the result, this cached value represents the generated html view (including the main page, if any). So, the short answer is: no, you cannot exclude the main page from the cache.
source share