question

PatricSten avatar image
0 Votes"
PatricSten asked ·

Azure web app - Cache-control: Private

Hi!


When enabling cache in frontdoor, it caches my wordpress sites backend/wp-admin.
How and where am i suppose to put cache-control: private ?
Do i put it in web.config?


Br
Pat

azure-webappsazure-front-door
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

Hi @PatricSten,

Correct, you can add your cache control as a rewrite action in your web.config of your wordpress site.

 <rule name='AdjustCache'>
 <match serverVariable='RESPONSE_CACHE_CONTROL' pattern='.*' />
 <action type='Rewrite' value='no-cache, no-store, must-revalidate' />
 </rule>

Let me know if this helps.

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, will check it.
pattern='.' , is it here i put the url '/wp-admin*'

0 Votes 0 ·

Correct @PatricSten.

0 Votes 0 ·