Compare commits

...

2 Commits

Author SHA1 Message Date
ab5f021bf8
fix: update version number to 0.0.5 in manifest.json
All checks were successful
构建扩展程序 / 构建 Chrome 扩展程序 (push) Successful in 1m0s
构建扩展程序 / 构建 Firefox 附加组件 (push) Successful in 56s
构建扩展程序 / 发布至 Chrome 应用商店 (push) Has been skipped
构建扩展程序 / 发布至 Edge 附加组件商店 (push) Has been skipped
构建扩展程序 / 发布至 Firefox 附加组件库 (push) Has been skipped
2025-05-30 11:45:28 +10:00
7a938bd58c
fix: add cache control headers and timestamp parameter to axios HEAD request in PlayListItem.vue 2025-05-30 11:45:15 +10:00
2 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "MSR Mod", "name": "MSR Mod",
"version": "0.0.4", "version": "0.0.5",
"description": "塞壬唱片Monster Siren Records官网的替代前端。", "description": "塞壬唱片Monster Siren Records官网的替代前端。",
"content_scripts": [ "content_scripts": [
{ {

View File

@ -23,7 +23,17 @@ const emit = defineEmits<{
onMounted(async () => { onMounted(async () => {
try { try {
await axios.head(props.item.song.sourceUrl ?? '') //
await axios.head(props.item.song.sourceUrl ?? '', {
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0'
},
params: {
_t: Date.now() //
}
})
} catch (error) { } catch (error) {
// //
const updatedSong = await apis.getSong(props.item.song.cid) const updatedSong = await apis.getSong(props.item.song.cid)