Is there any implementation we pass CRON expression to DailyExpiresHeaderFilter rather than time. | Community
Skip to main content
January 6, 2025
Solved

Is there any implementation we pass CRON expression to DailyExpiresHeaderFilter rather than time.

  • January 6, 2025
  • 4 replies
  • 673 views

Hi All,
I'm looking for suggestions where i need to use this filter to have something to refresh at 2 minutes past each hour.
Acs commons implementation take simple date format, where i'm looking for custom implementation where we can configure CRON expressions for the same.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

MukeshYadav_
Community Advisor
MukeshYadav_Community AdvisorAccepted solution
Community Advisor
January 6, 2025
PRATHYUSHA_VP
Community Advisor
Community Advisor
January 6, 2025

Hi @diuc 

 

For ACS-TTL based implementation, you can apply customization to write your own logic -

 

Similar example i found for DispatcherMaxAgeHeaderFilter.java

 

TTL based ACS logic links : GitHub Link

 

Hope this helps 

 

Thanks

 

 

 

 

narendragandhi
Community Advisor
Community Advisor
January 7, 2025

Hi @diuc 

 

Can you please provide more details on your requirement. We typically use cron expression for a scheduler so curious to learn more on your request.

 

Thanks

Narendra

kautuk_sahni
Community Manager
Community Manager
January 20, 2025

@diuc Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni