I have done a View in Collection View with Custom Layout.
package com.adobe.example; import org.apache.annotations. The HTTP request has the following form: header and the path of the page to recache, respectively. The servlet uses the values to construct the HTTP request for Dispatcher. Subclasses can override it and return an appropriate value based on whether changes in the bounds of the collection view require changes to the layout of cells and supplementary views.
If the bounds of the collection view change and this method returns true, the collection view invalidates the layout by calling the invalidate Layout With Context: method.
Dispatcher caches the files again only when it recieves a client request for the page.