Fasguy / MinecraftToolbox

A WebApp that provides tools for mixing up your Minecraft gameplay
https://fasguy.net/minecraft_toolbox
MIT License
8 stars 3 forks source link

Fix caching-issue with data.zip of Loot-Table Randomizer and Crafting-Recipe Randomizer #10

Closed Fasguy closed 2 years ago

Fasguy commented 2 years ago

The HTTP requests for the data.zip of the Loot-Table Randomizer and the Crafting-Recipe Randomizer are currently using the default caching logic, provided by a user's browser. This becomes a problem, when the data of existing versions has been altered. Instead, the request itself should never be cached, but always be pulled fresh and then only kept in cache for the session the user is currently in. An interceptor for the session-caching already exists, the request itself just needs to be performed with the required no-cache headers.