Hi,Sorry but I don't think that this is the best approach.Why do you need to change it? If you need to change it just for stylesheet option, I can suggest you to proceed by changing your style or js file.Let us know.Thanks,Antonio
Hi,this solution is confirmed officially in Adobe documentation [0] (Invalidating Dispatcher Cache from a Publishing Instance).[0] Invalidating Cached Pages From AEM Thanks,Antonio
Hi, as per my knowledge it depends on the DAM services that you want to integrate.In different project I've different situation e.g.:For a customer we perform a customization into the components dialog in order to open a popup with the external DAM during the configuration of the componentFor a cust...
Hi,probably you don't need to use some strange functionality but just implement this in front-end stuff.You can use a javascript framework which allow you to download the page in a pdf format.E.g. https://codepen.io/AshikNesin/pen/KzgeYX , check into this code that probably could be helpful for your...
Hi,I'm referring to your previous post:6. Re: AEM always returns 200 status code.yes, I created a 404.html and ResponseStatus.java under /apps/sling/servlet/errorhandlerIn the 404.html, the code is as:<sly data-sly-use.responseStatus="apps.sling.servlet.errorhandler.ResponseStatus"> <sly data-sly...
Hi,Have you already tryied to change the status into the ResponseStatus.java?Just to check if a different status code is returned let's try to do this:public void activate() throws Exception { getResponse().setStatus(407); }Let us know.Thanks,Antonio
Hi,I think that you just need to define an adapter strategy like the following snippet:@Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)Thanks,Antonio
Hi Stuart,No, this is a very bad practice!The dispatcher allow you to serve a very large number of request if the page is cached. If you need to remove all cache for each author page publish, probably you are working on a full loggedin site which need to have really dynamic information. If you are w...
Hi Stuart,You need to configure your dispatcher in order to align the cache management to your expectation.Probably in your case you need to change the statfilelevel in order to clear the cache only for the subtree with depth which you decide.Have a look on this documentation [0] [1] where you can f...