Skip to content

Commit

Permalink
fix: image cache too strict bayang#147
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Oct 26, 2024
1 parent baa86f8 commit fb3477f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jelu-ui/src/components/BookDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const hasExternalLink = computed(() => book.value?.book.amazonId != null
function modalClosed() {
console.log("modal closed")
currentTimestamp = timestamp()
getBook()
}
Expand Down Expand Up @@ -512,6 +513,9 @@ const formatSeries = async (series: Series) => {
return txt
}
const timestamp = () => new Date().toISOString()
let currentTimestamp = timestamp()
getBook()
</script>
Expand Down Expand Up @@ -685,7 +689,7 @@ getBook()
<figure>
<img
v-if="book?.book?.image"
:src="'/files/' + book.book.image"
:src="'/files/' + book.book.image + '?timestamp=' + currentTimestamp"
alt="cover image"
class="max-h-96"
>
Expand Down

0 comments on commit fb3477f

Please sign in to comment.