diff --git a/README.md b/README.md index d7c9a79..96e10af 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Currently, there is no documentation or wiki available but, I do plan to add one This will also be published on the site some time soon but for now, the roadmap will be listed here. - [ ] Finish adding started at date feature -- [X] Make board background image editable after board creation +- [x] Make board background image editable after board creation - [ ] Pagination for Audit Logs page - [ ] Board sorting options (Boards Page) - [ ] Add list and card views to boards page diff --git a/app/api/unsplash/route.ts b/app/api/unsplash/route.ts index d9c5b4a..b0d3118 100644 --- a/app/api/unsplash/route.ts +++ b/app/api/unsplash/route.ts @@ -10,7 +10,11 @@ export async function GET() { if (result?.response) { const newImages = result.response as Array>; - return new NextResponse(JSON.stringify(newImages), { status: 200 }); + const response = new NextResponse(JSON.stringify(newImages), { + status: 200, + }); + response.headers.set('Cache-Control', 'no-store'); + return response; } else { return new NextResponse('Failed to get images', { status: 500 }); }