AEMaaCS + local dispatcher: how to test caching? | Community
Skip to main content
jayv25585659
Level 8
October 2, 2025
Question

AEMaaCS + local dispatcher: how to test caching?

  • October 2, 2025
  • 1 reply
  • 567 views

TLDR: I'm trying to investigate query param caching (example: /archive.html?page=xxx&year=yyyy) in my local dispatcher and I'm not sure how to test for it.

-----------
1. 

 

If I visit https://www.myhost.com/content/myapp/sg/en/faq.html, I'm pretty sure an HTML file is created in the dispatcher filesystem (maybe in /var/www/html).

If I visit http://localhost:8080/content/myapp/sg/en/faq.html, where can I find the HTML file for this page?

I tried this command (after running docker exec) but it only found the default Apache HTTPD index.html. Any ideas? Thanks

54177f4f6b8b:/# find / -iname "*.html" -type f 2>/dev/null /var/www/localhost/htdocs/index.html

--------

2. I am trying to test Cache-Control but no matter what value I set, it seems the value is always the same. ("public,max-age=60,s-maxage=300,stale-while-revalidate=86400,stale-if-error=86400")
As a test I tried this

Header set Cache-Control max-age=0

Is this normal behavior?
------

EDIT1: I tried both docker_run_hot_reload.sh and docker_run.sh to start the dispatcher. It does not make a difference.

EDIT2: I saw the cache folder inside /dispatcher-sdk-2.0.235 and it contains no files. I made sure the cache folder is writable by everyone by running chmod -R 777 cache.

 

1 reply

arunpatidar
Community Advisor
Community Advisor
October 2, 2025

Hi @jayv25585659 

You would find a cache folder at root directory of dispatcher-sdk from where you are running those docker scripts.

Arun Patidar
jayv25585659
Level 8
October 2, 2025

I saw that and the folder contains no files

# pwd /home/myuser/Documents/aem-sdk-2025.1.19149.20250116T154450Z-241100/dispatcher-sdk-2.0.235 # find cache -type f | wc -l 0
arunpatidar
Community Advisor
Community Advisor
October 2, 2025

Hi @jayv25585659 

Then please check the dispatcher config to allow cache.

 

Can you also try using docker terminal to check the cache

 

Arun Patidar