Open Closed

ApplicationConfigurationScript and ServiceProxyScript always load or cache #3721


User avatar
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)
  • User Avatar
    0
    TM4e created

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09