Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Disable caching for certain file types #203

Open
2 tasks done
zachsa opened this issue Nov 22, 2022 · 1 comment
Open
2 tasks done

[feat] Disable caching for certain file types #203

zachsa opened this issue Nov 22, 2022 · 1 comment

Comments

@zachsa
Copy link

zachsa commented Nov 22, 2022

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

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
@zachsa
Copy link
Author

zachsa commented Nov 22, 2022

This is possible by index: false, and then serving html separately. Although in my case my html files never have explicit .html file types, so the only page that was being hit was index.html for me. I'm not sure if there is a solution if trying to serve an HTML file other than index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant