Skip to content

Commit

Permalink
Attempt to fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti committed Apr 22, 2024
1 parent 2699e7b commit dbd1449
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions website/src/components/DataGrid.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';
// Set cache headers to prevent caching
Astro.response.headers.set('Cache-Control', 'no-cache');
---
<style>
.ag-theme-quartz {
Expand Down
2 changes: 1 addition & 1 deletion website/src/utils/FetchData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export async function fetchLocalJsonFile(url: string) {
try {
const response = await fetch(url);
const response = await fetch(url, { cache: "no-cache" });
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
Expand Down

0 comments on commit dbd1449

Please sign in to comment.