madskristensen / WebEssentials.AspNetCore.ServiceWorker

Other
339 stars 61 forks source link

Is there any way to disable caching for specific urls like /admin? #64

Open Mertez opened 5 years ago

Mertez commented 5 years ago

Project runs perfectly but in my management panel makes problems with webservices etc. Is there a way to disable serviceworker in some routes or urls like /admin/* or something like this to excluse them from caching?

AFM-Horizon commented 4 years ago

This issue has been raised in #26 #21 also just so people are aware! you may find a solution particularly in #21 that may work for you using the CacheFingerprinted Strategy.

AFM-Horizon commented 4 years ago

The new custom service worker in #71 will provide a solution that may work for you! you can simply create a custom service worker java script file that can accept use the new routes to ignore configuration setting.