22 Commits

Author SHA1 Message Date
Arthur Fiorette
ed99d775bb
feat: correct ESM and CJS support, move to microbundle. (#764) 2024-01-18 23:48:33 -03:00
dependabot[bot]
ed142c6ca2
chore(deps-dev): bump @biomejs/biome from 1.3.3 to 1.4.1 (#740)
* chore(deps-dev): bump @biomejs/biome from 1.3.3 to 1.4.1

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.3.3 to 1.4.1.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.4.1/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* linted code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <me@arthur.place>
2023-12-12 16:14:39 -03:00
arthurfiorette
683dbe0f22
fix: support max-stale on header interpreter (#543) 2023-06-09 13:10:06 -03:00
arthurfiorette
22870d7d72 fix: canStale should return false if Cache-Control: must-revalidate is present #507 2023-04-09 12:51:52 -03:00
Richard Garnier
2ae4d28878
fix: Support stale-while-revalidate (#514)
* implement stale-while-revalidate

* Backward compatibility

* Fix review comments

* chore: isExpired check comment

---------

Co-authored-by: Arthur Fiorette <github@arthur.place>
2023-03-19 16:54:24 -03:00
arthurfiorette
d6b41e802f
feat: incresed tsdoc documentation a lot 2023-02-17 13:16:06 -03:00
arthurfiorette
a5ebad3d14
fix: eslint warnings 2023-02-02 20:29:21 -03:00
Heiko Rothkranz
728b69d71a
fix: Interpret max-age=0 as a valid cache-control header (#253)
* fix: Interpret `max-age=0` as a valid `cache-control` header

* tests: added max-age=0 test

* fix: fixed linting

Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>
2022-06-02 21:57:51 -03:00
Arthur Fiorette
f699e194f8
fix: memory storage copy data to avoid reference changes (#164)
* tests: added initial unit test

* fix: added fix

* tests: fixed tests

* style: formatted code
2022-03-11 13:29:13 -03:00
arthurfiorette
d14750ee63
refactor: moved header file 2022-01-19 07:48:33 -03:00
arthurfiorette
66f29c92c7
deps: updated axios to v0.25 2022-01-18 12:25:31 -03:00
Arthur Fiorette
25b34e5d11
docs: documentation at axios-cache-interceptor.js.org (#108) 2022-01-06 18:44:36 -03:00
arthurfiorette
a7751fd1cb
tests: 100% coverage again 2022-01-03 09:21:16 -03:00
arthurfiorette
e776f01c98
refactor: simplified header interpreter 2022-01-02 20:32:29 -03:00
arthurfiorette
fec63a84a7
test: added one simple test 2021-12-27 09:05:53 -03:00
arthurfiorette
6ce658b053
deps: use cache-parser 2021-12-13 15:32:38 -03:00
Hazork
76a8af7433 feat: immutable cache support 2021-11-11 14:26:27 -03:00
Arthur Fiorette
92b9ed7abf
feat: more headers supports, tests and must-revalidate fix (#51)
* feat: must-revalidate and headers enum
* test: added more tests
* test: test and code fixes
* test: more tests
2021-11-11 14:16:37 -03:00
Hazork
f8adcc4352 fix: force import type to help compilation tools 2021-09-26 16:24:33 -03:00
Hazork
1f88779e46 fix: axios headers are lowercased 2021-09-16 19:11:45 -03:00
Hazork
288c11849c feat: interpreter also handles Expires header (and tests) 2021-09-13 17:46:26 -03:00
Hazork
ce2b7ecb4b refactor: externalized the header interceptor 2021-09-11 10:21:53 -03:00