Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Caching stores.init.js

Avatar

Level 6

I wanted to cache the below file in dispatcher without query parameters for all the pages. Is it possible ?

 

http://localhost:7080/etc/clientcontext/default/content/jcr:content/stores.init.js?path=%2Fcontent%2...

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

if the query string doesn't matter, I woudl use mod_rewrite on Apache webserver to eliminate the query string(s) specifically on this URL. You can also do this on dispatcher, see [1].

kind regards,
Jörg

[1] https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Restricting%20Query%20Strings

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi,

if the query string doesn't matter, I woudl use mod_rewrite on Apache webserver to eliminate the query string(s) specifically on this URL. You can also do this on dispatcher, see [1].

kind regards,
Jörg

[1] https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Restricting%20Query%20Strings