AEMaaCS: how do I cache pages that uses query params?
Basically I'm trying to cache historical data since it's not going to chance anymore.
2 questions please
1. how do I configure the dispatcher so it caches query parameter?
2. How can I cache these pages for X days (considering they are historical and not going to change anymore. It'll only be used for reporting.
-----------
So I have the following in my dispatcher config. reading various references it seems it should work but I cannot test it locally.
/ignoreUrlParams {
/0001 { /glob "*" /type "deny" }
/4441 { /glob "year=2024" /type "allow" }
/4442 { /glob "year=2023" /type "allow" }
/4443 { /glob "year=2022" /type "allow" }
/4444 { /glob "year=2021" /type "allow" }
/4445 { /glob "year=2020" /type "allow" }
/4446 { /glob "year=2019" /type "allow" }
/4447 { /glob "year=2018" /type "allow" }
/4448 { /glob "year=2017" /type "allow" }
/4449 { /glob "year=2016" /type "allow" }
/4410 { /glob "year=2015" /type "allow" }
/4411 { /glob "year=2014" /type "allow" }
}