To turn off caching in Swagger UI, you need to update the Swagger UI configuration options.
index.html
or index.js
.config
variable, which contains the Swagger UI configuration options.cache
option to the configuration object and set it to false
. For example:const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: "#swagger-ui",
deepLinking: true,
cache: false
});
Note that disabling caching can impact performance, as resources may need to be fetched from the server every time the Swagger UI page is loaded or refreshed.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-05-15 11:00:00 +0000
Seen: 10 times
Last updated: Apr 28 '22
What is the method for including more than 25 options to the autocomplete feature in discord.js v14?
Does AsyncSelect fail to automatically update or refresh its values?
What is the process for eliminating/concealing boot options on the rEFInd bootloader display?
Can check-boxes be positioned to the left in Angular Material's mat-list options?
If my data doesn't have an ID property, what alternative key options do I have?
How to create a library using IAR Embedded workbench?
How can I create dynamic menu options for a custom TinyMCE button?
How can I export a highchart graph that includes tooltips and labels?