How to set cache control on OOTB web scripts

cancel
Showing results for 
Search instead for 
Did you mean: 
hardik_thakkar
Active Member II

How to set cache control on OOTB web scripts

Hi Team,

I want to set "Cache-Control: no-cache,no-store,must-revalidate", by default value is "Cache-Control: no-cache".

As per Descriptor cache controls  able to set cache control on custom web script.

I have updated Cache-Control values in tomcat\webapps\manager\WEB-INF\jsp\sessionDetail.jsp and sessionsList.jsp file but no luck.

What are the configuration changes are required for OOTB web scripts?

Thanks,
Hardik

1 Reply
afaust
Master

Re: How to set cache control on OOTB web scripts

You may be confusing some things here. Any changes in the Tomcat Manager application - not to mention its session-related JSPs - won't have any impact on web script cache controls.

There is also no global configuration for cache control for ALL web scripts which may be contained in an Alfresco system. Each web script provides its own descriptor and thus potentially its own cache control configuration (i.e. https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/templates/we...). Most web scripts don't and rely on the prommatic default state (https://github.com/Alfresco/surf-webscripts/blob/master/spring-webscripts/spring-webscripts/src/main...), which cannot be changed without re-compiling that specific library (in the correct version for your Alfresco system).