mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-02 21:18:12 +00:00
chore(api): improved fetching data from api; changed to new vehicles data endpoint
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ export default defineConfig({
|
||||
cleanupOutdatedCaches: true,
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https:\/\/stacjownik.spythere.eu\/api\/(getSceneries|getVehicles)/i,
|
||||
handler: 'NetworkFirst',
|
||||
urlPattern: /^https:\/\/stacjownik.spythere.eu\/api\/(getSceneries|getVehiclesData)/i,
|
||||
handler: 'StaleWhileRevalidate',
|
||||
options: {
|
||||
expiration: {
|
||||
maxAgeSeconds: 3600
|
||||
|
||||
Reference in New Issue
Block a user