Commit Graph

5 Commits

Author SHA1 Message Date
dab246 d403b042ae Fix built release but nginx route 404 not found on web
(cherry picked from commit 153e168c87e36878f70ebfd061fe6678fd7d4754)
2023-09-19 12:08:02 +07:00
Quan Tran 1b79bf8457 Force browsers to re-validate cache before reuse
Upon new release, NGINX would return 200 OK with new static files.
Otherwise, NGINX would return 304 Not Modified with empty response, and browser continue to reuse cached static files.

(cherry picked from commit 4506a5e4901299dfcb8ba2524e2a6c451fffcf90)
2023-06-05 11:02:20 +07:00
Quan Tran 362c51edb2 Configure cache settings for Nginx
Cache expires after 24h.
After cache is expired, browser can compare ETag to the server to check if the file has changed. If the server returns the same token, then the file is the same, and there's no need to re-download it.

(cherry picked from commit b511f2094f6961bd6d353b86cf8d0d065536d04f)
2023-03-24 19:40:48 +07:00
Quan Tran 701502c6b7 Enable GZIP for Nginx 2022-04-14 16:43:01 +07:00
Dat PHAM HOANG 6ee34c4d97 Package the webapp in a docker nginx lightweight container 2022-02-25 14:28:43 +07:00