Expand my Community achievements bar.

SOLVED

need to deny Invalidation on /content/dam/*.pdf

Avatar

Level 5

Hi All,

I need to add a rule in Invalidate section of dispatcher.any to deny invalidation for all the .pdf  under /content/dam.

I added the rule { /glob "* /content/dam/*" /type "deny" } --> but not sure how to test it.

after adding this rule i activated page and in logs i saw still it is trying to touch "Touched /data/httpd/html/cq5dispatcher/publisher/content/dam/.stat".

 

Pleas let me know how to deny form getting invalidated and how to test it.

 

Thanks, Mahesh

1 Accepted Solution

Avatar

Correct answer by
Level 5

Below rule worked for me.

{ /glob "/content/dam/*" /type "deny" }

View solution in original post

3 Replies

Avatar

Level 10

Hi Mahesh,

Invalidate section add [A] . More details at  https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Automatically%20Invalidating%20Cached%20F...

[A]      /0003 { /glob "*.pdf" /type "deny" }

Thanks,

Avatar

Level 5

This rule :- /0003 { /glob "*.pdf" /type "deny" }, will deny every thing with .pdf.

Something we are trying to optimise, like "deny" auto invalidation .pdf  files under /content/dam/ 

other than /content/dam/ we what to allow auto invalidate, for that we added 

 { /glob "*.pdf" /type "allow" } under this rule we added below rule:-

 { /glob "* /content/dam/*" /type "deny" }

Not working, any thing i am missing here.

Avatar

Correct answer by
Level 5

Below rule worked for me.

{ /glob "/content/dam/*" /type "deny" }