Skip to content

Commit

Permalink
remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
robertotcestari committed Aug 8, 2024
1 parent 092a2aa commit 247e5d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Hono } from 'hono';
import { bearerAuth } from 'hono/bearer-auth';
import screenshot from './routes/screenshot';
import vimeoVideo from './routes/vimeo-video';
import uploadImage from './routes/upload-image';
import uploadAvatarImage from './routes/upload-avatar-image';
import avatarPlaceholder from './routes/avatars/avatar-placeholder';
import { etag } from 'hono/etag';

const app = new Hono();

Expand All @@ -19,7 +17,6 @@ app.route('/upload-image', uploadImage);
app.route('/upload-avatar-image', uploadAvatarImage);

// Unprotected routes
app.use('/avatars/*', etag());
app.route('/avatars', avatarPlaceholder);

export default {
Expand Down
1 change: 0 additions & 1 deletion src/routes/avatars/avatar-placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ app.get('/sm', async (c) => {
const response = new Response(buffer, {
headers: {
'Content-Type': 'image/avif',
'Cache-Control': 'public, max-age=10368000',
},
});
return response;
Expand Down

0 comments on commit 247e5d3

Please sign in to comment.