diff --git a/frontend/public/.htaccess b/frontend/public/.htaccess index 133a5f4..51ba3ad 100644 --- a/frontend/public/.htaccess +++ b/frontend/public/.htaccess @@ -1,3 +1,9 @@ + + + Header set Cache-Control "max-age=31536000, public" + + + RewriteEngine On RewriteBase / diff --git a/frontend/src/pages/posts/PostListPage.tsx b/frontend/src/pages/posts/PostListPage.tsx index 79a826f..600a3dd 100644 --- a/frontend/src/pages/posts/PostListPage.tsx +++ b/frontend/src/pages/posts/PostListPage.tsx @@ -94,13 +94,16 @@ export default () => { {posts.length ? ( - {posts.map (post => ( + {posts.map ((post, i) => ( ))} )