Open Closed

ApplicationConfigurationScript and ServiceProxyScript always load or cache #3721


0
TM4e created

Is ApplicationConfigurationScript and ServiceProxyScript scripts always load or cache? Is it possible to cache on the client side and won't load on every page? Thanks in advance.


2 Answer(s)
  • 0
    TM4e created

    This is my current approach. I copied the output and create JavaScript files for them. Any issue with this approach? Thanks.

  • 0
    liangshiwei created
    Support Team

    Hi,

    This is ok, but the service proxy and application configuration maybe change, like, you create a new feature, permission, or app service. You must re-copied the JavaScript file again.

    You can use the ApplicationConfigurationScript and ServiceProxyScript endponts for developement and replace it with JS file for production.

    And we have a static JS proxy system, you can check it: https://docs.abp.io/en/abp/latest/UI/AspNetCore/Static-JavaScript-Proxies