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

adds server/browser cache periods, refreshes in router #67

Merged
merged 2 commits into from
May 11, 2024

Conversation

Jerboa-app
Copy link
Contributor

@Jerboa-app Jerboa-app commented May 10, 2024

Closes #56
Closes #7

also an option to never refresh content
Copy link

Great, coverage is exactly the same as main!
Here is the full report breakdown

Total coverage 36.3 % (0.0 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.25  % 4 / 64
src/lib.rs                       | 42.11 % 8 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 72.0  % 72 / 100
src/content/sitemap.rs           | 79.45 % 116 / 146
src/filesystem/file.rs           | 87.88 % 29 / 33
src/web/discord/request/post.rs  | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/web/discord/request/model.rs | 100.0 % 3 / 3
________________________________

src/content/sitemap.rs Outdated Show resolved Hide resolved
Copy link

Seems the coverage is below main by -0.08 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 36.22 % (-0.08 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.25  % 4 / 64
src/lib.rs                       | 42.11 % 8 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 72.0  % 72 / 100
src/content/sitemap.rs           | 78.38 % 116 / 148
src/filesystem/file.rs           | 87.88 % 29 / 33
src/web/discord/request/post.rs  | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/web/discord/request/model.rs | 100.0 % 3 / 3
________________________________

@Jerboa-app Jerboa-app force-pushed the static_and_dynamic_router branch from 3717e77 to 0a7d106 Compare May 11, 2024 06:22
Copy link

Seems the coverage is below main by -0.11 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 36.19 % (-0.11 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.25  % 4 / 64
src/lib.rs                       | 42.11 % 8 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 72.0  % 72 / 100
src/content/sitemap.rs           | 77.85 % 116 / 149
src/filesystem/file.rs           | 87.88 % 29 / 33
src/web/discord/request/post.rs  | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/web/discord/request/model.rs | 100.0 % 3 / 3
________________________________

@Jerboa-app Jerboa-app merged commit 58816b4 into main May 11, 2024
6 checks passed
@Jerboa-app Jerboa-app deleted the static_and_dynamic_router branch May 20, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Observe Content (pages/resources), serve accordingly, toggleable cached dynamic content
1 participant