Compare commits

...

6 Commits

Author SHA1 Message Date
Spythere 9ff9341851 Merge pull request #21 from Spythere/development
Wersja 1.8.2
2024-03-08 16:55:16 +01:00
Spythere f9276f6c71 bump: 1.8.2 2024-03-08 16:54:30 +01:00
Spythere f4f9a4729f poprawki cachowania 2024-03-08 16:54:08 +01:00
Spythere ed0906b63e Merge pull request #20 from Spythere/development
Wersja 1.8.1
2024-03-07 14:22:45 +01:00
Spythere 2ae19123a3 bump: 1.8.1 2024-03-07 14:19:23 +01:00
Spythere 0c2be7b927 speed limits fix 2024-03-07 14:19:04 +01:00
3 changed files with 45 additions and 31 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pojazdownik",
"version": "1.8.0",
"version": "1.8.2",
"private": true,
"type": "module",
"scripts": {
+27 -27
View File
@@ -1,81 +1,81 @@
{
"EU07": {
"passenger": {
"650": 125
"650000": 125
},
"cargo": {
"2000": 70
"2000000": 70
},
"none": 110
},
"4E": {
"passenger": {
"650": 125
"650000": 125
},
"cargo": {
"2000": 70
"2000000": 70
},
"none": 110
},
"EU07E": {
"passenger": {
"650": 125
"650000": 125
},
"cargo": {
"2000": 70
"2000000": 70
},
"none": 110
},
"EP07": {
"passenger": {
"650": 125
"650000": 125
},
"cargo": null,
"none": 110
},
"EP08": {
"passenger": {
"650": 140
"650000": 140
},
"cargo": null,
"none": 110
},
"EP09": {
"passenger": {
"650": 160
"650000": 160
},
"cargo": null,
"none": 160
},
"ET41": {
"passenger": {
"700": 125
"700000": 125
},
"cargo": {
"4000": 70
"4000000": 70
},
"none": 110
},
"SM42": {
"passenger": {
"95": 90,
"200": 80,
"300": 70,
"450": 60,
"750": 50,
"1130": 40,
"1720": 30,
"2400": 20
"95000": 90,
"200000": 80,
"300000": 70,
"450000": 60,
"750000": 50,
"1130000": 40,
"1720000": 30,
"2400000": 20
},
"cargo": {
"95": 90,
"200": 80,
"300": 70,
"450": 60,
"750": 50,
"1130": 40,
"1720": 30,
"2400": 20
"95000": 90,
"200000": 80,
"300000": 70,
"450000": 60,
"750000": 50,
"1130000": 40,
"1720000": 30,
"2400000": 20
},
"none": 90
}
+17 -3
View File
@@ -24,7 +24,7 @@ export default defineConfig({
runtimeCaching: [
{
urlPattern: /^https:\/\/rj.td2.info.pl\/dist\/img\/thumbnails\/.*/i,
handler: 'NetworkFirst',
handler: 'CacheFirst',
options: {
cacheName: 'swdr-images-cache',
expiration: {
@@ -37,10 +37,24 @@ export default defineConfig({
},
},
{
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/.*/i,
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/data\/.*/i,
handler: 'NetworkFirst',
options: {
cacheName: 'spythere-api-cache',
cacheName: 'spythere-api-data-cache',
expiration: {
maxEntries: 150,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
{
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/images\/.*/i,
handler: 'CacheFirst',
options: {
cacheName: 'spythere-api-images-cache',
expiration: {
maxEntries: 150,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day