prevent profile photos from being cached

This commit is contained in:
Daniel
2023-07-22 00:47:46 -04:00
parent e7d76616ca
commit f34666f9c7
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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]"
/> />
); );