04-Feb-2023 17:36
Hello
We have our sites witn BigIP ASM enabled, and also have google CDN. But Google CDN does not store in cache pages with Set-Cookie in response.
BigIP send "ASM Main cookie" , so allways is a "Set-cookie" in response.
How can I stop sending "ASM Main cookie" for selected urls or files, like *.png *.js for start working with cache CDN?
Regards
05-Feb-2023 01:26
Hi @pcsrac ,
I am not aware with your implementation , but I believe you need to remove the TS ASM Cookie ,
So you can check the below Article :
https://support.f5.com/csp/article/K13693
you will use an iRule to achieve this also I think you need to to do this in responses so you should change the "when HTTP_REQUEST_RELEASE " to be " when HTTP_RESPONSE_RELEASE " to make it triggers in response time instead of Request time.
you can also take a look in this Article :
https://community.f5.com/t5/technical-forum/how-to-remove-the-asm-ts-cookie/td-p/129574
I hope it helps you.
05-Feb-2023 18:43
Some Cache CDN like "Google Cloud CDN" not caching when Set-cookie it is in response, but static pages, like images, is usefull they stay in cache, and not not arrive to ASM frecuently, CDN must respond to request. but for that could be an "feature option" for certain URL or filetypes not sent "Set-Cookie" to enable Cache proccessing.
I think irule option mencioned is a good but need to reduce the action for filetypes or url.