prevent profile photos from being cached
This commit is contained in:
@@ -60,7 +60,7 @@ export default function CollectionCard({ collection, className }: Props) {
|
|||||||
return (
|
return (
|
||||||
<ProfilePhoto
|
<ProfilePhoto
|
||||||
key={i}
|
key={i}
|
||||||
src={`/api/avatar/${e.userId}`}
|
src={`/api/avatar/${e.userId}?${Date.now()}`}
|
||||||
className="-mr-3 border-[3px]"
|
className="-mr-3 border-[3px]"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ export default function TeamManagement({
|
|||||||
)}
|
)}
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<ProfilePhoto
|
<ProfilePhoto
|
||||||
src={`/api/avatar/${e.userId}`}
|
src={`/api/avatar/${e.userId}?${Date.now()}`}
|
||||||
className="border-[3px]"
|
className="border-[3px]"
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
@@ -420,7 +420,7 @@ export default function TeamManagement({
|
|||||||
>
|
>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<ProfilePhoto
|
<ProfilePhoto
|
||||||
src={`/api/avatar/${collection.ownerId}`}
|
src={`/api/avatar/${collection.ownerId}?${Date.now()}`}
|
||||||
className="border-[3px]"
|
className="border-[3px]"
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default function Index() {
|
|||||||
return (
|
return (
|
||||||
<ProfilePhoto
|
<ProfilePhoto
|
||||||
key={i}
|
key={i}
|
||||||
src={`/api/avatar/${e.userId}`}
|
src={`/api/avatar/${e.userId}?${Date.now()}`}
|
||||||
className="-mr-3 duration-100 border-[3px]"
|
className="-mr-3 duration-100 border-[3px]"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user