How to not cache response of default servlet
@8220494(immediate = true, service = Servlet.class, property={
"sling.servlet.methods=" + "GET",
"sling.servlet.resourceTypes=" + "sling/servlet/default",
"sling.servlet.extensions=" + "abc"
})
public class abcServlet extends SlingAllMethodsServlet {
}
we have above default servlet with extension.
we dont want to cache the response from API when this is triggered.
we are trying to add this rule in dispatcher rules.any file.
# Rule. Don't cache API requests
/0030 {
/glob "/*.abc.html"
/type "deny"
}
will this be sufficient or do we have any alternate way to do this job?