On Jun 1, 2010, at 6:02 PM, Andrea Castelli wrote: > Hi everybody, > I'm searching a way to set http-header to tell the browsers to cache or not > to cache. > > In the source code of Magnolia I found two different way to do this: > 1-SetExpirationHeader, configuring it in the cache module > 2-CacheHeadersFilter , configuring it in server>filter > > To be more clear: > In a page I need to tell the browse to not cache html (images can be cached). > In another page I need to never cache images (only the html can be cached). > > How can I do this?
Look at config:/modules/cache/config/configurations/default/browserCachePolicy/class replace the class there with your own implementation of the browser cache policy that will set different values based on the content that is being processed. HTH, Jan > > I found the issue > > MAGNOLIA-2011 > but I do not understand which option is suitable for my need. > > Easy solution:I can set to Never the browser cache policy but I do not want > reject the advantages of a browser cache because in only two pages I need to > not have cache. > > Other option: If I set exclude from cache this two pages, is the browser > cache policy applied? > > Thank you for your patience. > Andrea > - Best regards, Jan Haderka, PhD. Magnolia International Ltd. http://www.magnolia-cms.com You should join us at Magnolia Conference 2010: http://www.magnolia-cms.com/conference http://twitter.com/magnolia_cms http://facebook.com/Magnolia -------------------------------------- Magnolia® - Simple Open-Source Content Management ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
