koajs / koajs/static

[feat] Disable caching for certain file types

Open
#203 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature
Hi,

I would like to serve html, js and css files. The js and css files should be cached inthe browser but the HTML should not.. is there anywayto configure this?

## Checklist

- [x] I have searched through GitHub issues for similar issues.
- [x] I have completely read through the README and documentation.

Contributor guide

Open the contributing guide

Research direction

Start by reading the README and documentation, then inspect how the static file server configures browser caching for served files. Determine how file types could be selected for different caching behavior; done means HTML is not cached while JavaScript and CSS remain cached. The issue names no source files or tests, so locating the relevant entry point and adding coverage will require project familiarity.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.