need to deny Invalidation on /content/dam/*.pdf | Community
Skip to main content
Level 4
December 1, 2015
Solved

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

  • December 1, 2015
  • 3 replies
  • 1296 views

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

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

Below rule worked for me.

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

3 replies

Sham_HC
Level 10
December 1, 2015

Hi Mahesh,

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

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

Thanks,

Level 4
December 1, 2015

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.

Mahesh_VikramAuthorAccepted solution
Level 4
December 4, 2015

Below rule worked for me.

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