├── .github └── workflows │ └── run-tests.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── ci ├── Dockerfile ├── port-4777-app.conf ├── port-4778-app.conf ├── port-4779-app.conf ├── port-4780-app.conf └── port-4781-app.conf ├── launch-test-nginx.sh ├── run-tests.sh ├── src ├── lua-ssi-content.lua └── lua-ssi-header.lua └── tests ├── big_file.txt ├── big_file └── index.json ├── broken_json_include.txt ├── broken_json_include ├── broken_sub_resource.json └── index.json ├── broken_json_include_with_percent.txt ├── broken_json_include_with_percent ├── index.json └── sub_resource.json ├── broken_json_include_without_inline.sh ├── broken_json_include_without_inline.txt ├── content_type_of_json_error.sh ├── content_type_of_json_error.txt ├── count_root_request_without_cache_control.sh ├── count_root_request_without_cache_control.txt ├── count_subrequests_without_cache_control.sh ├── count_subrequests_without_cache_control.txt ├── debug_no_include.sh ├── debug_no_include.txt ├── debug_ssi_expires_stale.sh ├── debug_ssi_expires_stale.txt ├── dont_minimize_max_age.sh ├── dont_minimize_max_age.txt ├── echo.sh ├── echo.txt ├── echo_custom_header.sh ├── echo_custom_header.txt ├── echo_method.sh ├── echo_method.txt ├── etag_check.sh ├── etag_check.txt ├── excluded_content_type.txt ├── excluded_content_type └── index.csv ├── gzip.txt ├── gzip ├── drooter.html ├── footer.html ├── index.html └── zwooter.html ├── image.txt ├── image └── cc-public-domain-mark.png ├── json.txt ├── json └── index.json ├── json_include.txt ├── json_include ├── index.json ├── sub_resource.json └── sub_sub_resource.json ├── json_include_bad_gateway.txt ├── json_include_bad_gateway └── index.json ├── json_include_bad_gateway_without_inline.sh ├── json_include_bad_gateway_without_inline.txt ├── json_include_with_percent.txt ├── json_include_with_percent ├── index.json └── sub_resource.json ├── json_virtual_include.txt ├── json_virtual_include ├── index.json ├── sub_resource.json └── sub_sub_resource.json ├── max-age ├── include-age-5-and-cache-control-10-and-15-expires-in-30.json ├── include-broken-max-age-value-and-expires-in-30.json ├── include-stale-expires-in-120.json ├── include-without-cache-control-expires-in-30.json ├── includes-30-max-age-35-age-40-swr-expires-in-120.json ├── no-cache-control.json └── ‪includes-35-max-age-30-age-40-swr-expires-in-120.json‬ ├── no_not_modified_if_not_200.sh ├── no_not_modified_if_not_200.txt ├── no_not_modified_if_not_200 ├── index.json └── sub_resource.json ├── not_modified_check_on_json_include.sh ├── not_modified_check_on_json_include.txt ├── one.txt ├── one ├── drooter.html ├── footer.html ├── index.html └── zwooter.html ├── parse_cache_control.lua ├── parse_cache_control.txt ├── recursion_cap.txt ├── recursion_cap ├── index.json ├── sub_resource.json └── sub_sub_resource.json ├── recursion_cap_depth.txt ├── recursion_cap_depth ├── index.json ├── sub_resource.json └── sub_sub_resource.json ├── relative_ssi_path.txt ├── relative_ssi_path └── index.json ├── response_of_status_409.sh ├── response_of_status_409.txt ├── status_401.sh ├── status_401.txt ├── status_409.sh ├── status_409.txt ├── status_500.sh ├── status_500.txt ├── use_max_age_0_if_max_age_is_broken_on_root.sh ├── use_max_age_0_if_max_age_is_broken_on_root.txt ├── use_max_age_0_if_max_age_is_broken_on_sub.sh ├── use_max_age_0_if_max_age_is_broken_on_sub.txt ├── use_minimized_max_age_and_swr.sh ├── use_minimized_max_age_and_swr.txt ├── use_minimized_max_age_and_swr_do_not_override_swr.sh ├── use_minimized_max_age_and_swr_do_not_override_swr.txt ├── use_minimum_max_age.sh └── use_minimum_max_age.txt /.github/workflows/run-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/.github/workflows/run-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /Dockerfile 2 | /tests/*.result 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/README.md -------------------------------------------------------------------------------- /ci/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/Dockerfile -------------------------------------------------------------------------------- /ci/port-4777-app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/port-4777-app.conf -------------------------------------------------------------------------------- /ci/port-4778-app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/port-4778-app.conf -------------------------------------------------------------------------------- /ci/port-4779-app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/port-4779-app.conf -------------------------------------------------------------------------------- /ci/port-4780-app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/port-4780-app.conf -------------------------------------------------------------------------------- /ci/port-4781-app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/ci/port-4781-app.conf -------------------------------------------------------------------------------- /launch-test-nginx.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/launch-test-nginx.sh -------------------------------------------------------------------------------- /run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/run-tests.sh -------------------------------------------------------------------------------- /src/lua-ssi-content.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/src/lua-ssi-content.lua -------------------------------------------------------------------------------- /src/lua-ssi-header.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/src/lua-ssi-header.lua -------------------------------------------------------------------------------- /tests/big_file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/big_file.txt -------------------------------------------------------------------------------- /tests/big_file/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/big_file/index.json -------------------------------------------------------------------------------- /tests/broken_json_include.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/broken_json_include.txt -------------------------------------------------------------------------------- /tests/broken_json_include/broken_sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": "subResource", "with invalud json} -------------------------------------------------------------------------------- /tests/broken_json_include/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/broken_json_include/index.json -------------------------------------------------------------------------------- /tests/broken_json_include_with_percent.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/broken_json_include_with_percent.txt -------------------------------------------------------------------------------- /tests/broken_json_include_with_percent/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/broken_json_include_with_percent/index.json -------------------------------------------------------------------------------- /tests/broken_json_include_with_percent/sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": brokensubResource%1%2%%"} -------------------------------------------------------------------------------- /tests/broken_json_include_without_inline.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -sS "localhost:4779/broken_json_include/" 4 | exit $? -------------------------------------------------------------------------------- /tests/broken_json_include_without_inline.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/broken_json_include_without_inline.txt -------------------------------------------------------------------------------- /tests/content_type_of_json_error.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/content_type_of_json_error.sh -------------------------------------------------------------------------------- /tests/content_type_of_json_error.txt: -------------------------------------------------------------------------------- 1 | < Content-Type: application/json -------------------------------------------------------------------------------- /tests/count_root_request_without_cache_control.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/count_root_request_without_cache_control.sh -------------------------------------------------------------------------------- /tests/count_root_request_without_cache_control.txt: -------------------------------------------------------------------------------- 1 | < X-Ssi-Missing-CC-Count: 1 -------------------------------------------------------------------------------- /tests/count_subrequests_without_cache_control.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/count_subrequests_without_cache_control.sh -------------------------------------------------------------------------------- /tests/count_subrequests_without_cache_control.txt: -------------------------------------------------------------------------------- 1 | < X-Ssi-Missing-CC-Count: 1 -------------------------------------------------------------------------------- /tests/debug_no_include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/debug_no_include.sh -------------------------------------------------------------------------------- /tests/debug_no_include.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/debug_no_include.txt -------------------------------------------------------------------------------- /tests/debug_ssi_expires_stale.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/debug_ssi_expires_stale.sh -------------------------------------------------------------------------------- /tests/debug_ssi_expires_stale.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/debug_ssi_expires_stale.txt -------------------------------------------------------------------------------- /tests/dont_minimize_max_age.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/dont_minimize_max_age.sh -------------------------------------------------------------------------------- /tests/dont_minimize_max_age.txt: -------------------------------------------------------------------------------- 1 | < Cache-Control: max-age=30 -------------------------------------------------------------------------------- /tests/echo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/echo.sh -------------------------------------------------------------------------------- /tests/echo.txt: -------------------------------------------------------------------------------- 1 | {"key":"value"} -------------------------------------------------------------------------------- /tests/echo_custom_header.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/echo_custom_header.sh -------------------------------------------------------------------------------- /tests/echo_custom_header.txt: -------------------------------------------------------------------------------- 1 | < X-Custom-Header: LALA -------------------------------------------------------------------------------- /tests/echo_method.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/echo_method.sh -------------------------------------------------------------------------------- /tests/echo_method.txt: -------------------------------------------------------------------------------- 1 | < X-Request-Method: POST -------------------------------------------------------------------------------- /tests/etag_check.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/etag_check.sh -------------------------------------------------------------------------------- /tests/etag_check.txt: -------------------------------------------------------------------------------- 1 | < ETag: "a7353f7cddce808de0032747a0b7be50" -------------------------------------------------------------------------------- /tests/excluded_content_type.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/excluded_content_type.txt -------------------------------------------------------------------------------- /tests/excluded_content_type/index.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/excluded_content_type/index.csv -------------------------------------------------------------------------------- /tests/gzip.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/gzip.txt -------------------------------------------------------------------------------- /tests/gzip/drooter.html: -------------------------------------------------------------------------------- 1 | drooter -------------------------------------------------------------------------------- /tests/gzip/footer.html: -------------------------------------------------------------------------------- 1 | footer! -------------------------------------------------------------------------------- /tests/gzip/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/gzip/index.html -------------------------------------------------------------------------------- /tests/gzip/zwooter.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/gzip/zwooter.html -------------------------------------------------------------------------------- /tests/image.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/image.txt -------------------------------------------------------------------------------- /tests/image/cc-public-domain-mark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/image/cc-public-domain-mark.png -------------------------------------------------------------------------------- /tests/json.txt: -------------------------------------------------------------------------------- 1 | {"key": "value"} -------------------------------------------------------------------------------- /tests/json/index.json: -------------------------------------------------------------------------------- 1 | {"key": "value"} -------------------------------------------------------------------------------- /tests/json_include.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include.txt -------------------------------------------------------------------------------- /tests/json_include/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include/index.json -------------------------------------------------------------------------------- /tests/json_include/sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include/sub_resource.json -------------------------------------------------------------------------------- /tests/json_include/sub_sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": "subSubResource"} -------------------------------------------------------------------------------- /tests/json_include_bad_gateway.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include_bad_gateway.txt -------------------------------------------------------------------------------- /tests/json_include_bad_gateway/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include_bad_gateway/index.json -------------------------------------------------------------------------------- /tests/json_include_bad_gateway_without_inline.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -sS "localhost:4779/json_include_bad_gateway/" 4 | exit $? -------------------------------------------------------------------------------- /tests/json_include_bad_gateway_without_inline.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include_bad_gateway_without_inline.txt -------------------------------------------------------------------------------- /tests/json_include_with_percent.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include_with_percent.txt -------------------------------------------------------------------------------- /tests/json_include_with_percent/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_include_with_percent/index.json -------------------------------------------------------------------------------- /tests/json_include_with_percent/sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": "subResource%1%2%%"} -------------------------------------------------------------------------------- /tests/json_virtual_include.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_virtual_include.txt -------------------------------------------------------------------------------- /tests/json_virtual_include/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_virtual_include/index.json -------------------------------------------------------------------------------- /tests/json_virtual_include/sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/json_virtual_include/sub_resource.json -------------------------------------------------------------------------------- /tests/json_virtual_include/sub_sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": "subSubResource"} -------------------------------------------------------------------------------- /tests/max-age/include-age-5-and-cache-control-10-and-15-expires-in-30.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/include-age-5-and-cache-control-10-and-15-expires-in-30.json -------------------------------------------------------------------------------- /tests/max-age/include-broken-max-age-value-and-expires-in-30.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/include-broken-max-age-value-and-expires-in-30.json -------------------------------------------------------------------------------- /tests/max-age/include-stale-expires-in-120.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/include-stale-expires-in-120.json -------------------------------------------------------------------------------- /tests/max-age/include-without-cache-control-expires-in-30.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/include-without-cache-control-expires-in-30.json -------------------------------------------------------------------------------- /tests/max-age/includes-30-max-age-35-age-40-swr-expires-in-120.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/includes-30-max-age-35-age-40-swr-expires-in-120.json -------------------------------------------------------------------------------- /tests/max-age/no-cache-control.json: -------------------------------------------------------------------------------- 1 | {"i": "do-not-expire"} -------------------------------------------------------------------------------- /tests/max-age/‪includes-35-max-age-30-age-40-swr-expires-in-120.json‬: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/max-age/‪includes-35-max-age-30-age-40-swr-expires-in-120.json‬ -------------------------------------------------------------------------------- /tests/no_not_modified_if_not_200.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/no_not_modified_if_not_200.sh -------------------------------------------------------------------------------- /tests/no_not_modified_if_not_200.txt: -------------------------------------------------------------------------------- 1 | < HTTP/1.1 500 Internal Server Error -------------------------------------------------------------------------------- /tests/no_not_modified_if_not_200/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/no_not_modified_if_not_200/index.json -------------------------------------------------------------------------------- /tests/no_not_modified_if_not_200/sub_resource.json: -------------------------------------------------------------------------------- 1 | {"thisIsA": "subResource", but invalid json} -------------------------------------------------------------------------------- /tests/not_modified_check_on_json_include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/not_modified_check_on_json_include.sh -------------------------------------------------------------------------------- /tests/not_modified_check_on_json_include.txt: -------------------------------------------------------------------------------- 1 | < HTTP/1.1 304 Not Modified -------------------------------------------------------------------------------- /tests/one.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/one.txt -------------------------------------------------------------------------------- /tests/one/drooter.html: -------------------------------------------------------------------------------- 1 | drooter -------------------------------------------------------------------------------- /tests/one/footer.html: -------------------------------------------------------------------------------- 1 | footer! -------------------------------------------------------------------------------- /tests/one/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/one/index.html -------------------------------------------------------------------------------- /tests/one/zwooter.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/one/zwooter.html -------------------------------------------------------------------------------- /tests/parse_cache_control.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/parse_cache_control.lua -------------------------------------------------------------------------------- /tests/parse_cache_control.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/recursion_cap.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap.txt -------------------------------------------------------------------------------- /tests/recursion_cap/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap/index.json -------------------------------------------------------------------------------- /tests/recursion_cap/sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap/sub_resource.json -------------------------------------------------------------------------------- /tests/recursion_cap/sub_sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap/sub_sub_resource.json -------------------------------------------------------------------------------- /tests/recursion_cap_depth.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap_depth.txt -------------------------------------------------------------------------------- /tests/recursion_cap_depth/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap_depth/index.json -------------------------------------------------------------------------------- /tests/recursion_cap_depth/sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap_depth/sub_resource.json -------------------------------------------------------------------------------- /tests/recursion_cap_depth/sub_sub_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/recursion_cap_depth/sub_sub_resource.json -------------------------------------------------------------------------------- /tests/relative_ssi_path.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/relative_ssi_path.txt -------------------------------------------------------------------------------- /tests/relative_ssi_path/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/relative_ssi_path/index.json -------------------------------------------------------------------------------- /tests/response_of_status_409.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -sS "localhost:4778/status409/" 4 | exit $? -------------------------------------------------------------------------------- /tests/response_of_status_409.txt: -------------------------------------------------------------------------------- 1 | {"fake": "509er json"} -------------------------------------------------------------------------------- /tests/status_401.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -v -sS "localhost:4780/status401/" 2>&1 | grep '< HTTP' | tr -d "\n" 4 | exit $? -------------------------------------------------------------------------------- /tests/status_401.txt: -------------------------------------------------------------------------------- 1 | < HTTP/1.1 401 Unauthorized -------------------------------------------------------------------------------- /tests/status_409.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -v -sS "localhost:4778/status409/" 2>&1 | grep '< HTTP' | tr -d "\n" 4 | exit $? -------------------------------------------------------------------------------- /tests/status_409.txt: -------------------------------------------------------------------------------- 1 | < HTTP/1.1 409 Conflict -------------------------------------------------------------------------------- /tests/status_500.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -v -sS "localhost:4778/status500/" 2>&1 | grep '< HTTP' | tr -d "\n" 4 | exit $? -------------------------------------------------------------------------------- /tests/status_500.txt: -------------------------------------------------------------------------------- 1 | < HTTP/1.1 500 Internal Server Error -------------------------------------------------------------------------------- /tests/use_max_age_0_if_max_age_is_broken_on_root.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_max_age_0_if_max_age_is_broken_on_root.sh -------------------------------------------------------------------------------- /tests/use_max_age_0_if_max_age_is_broken_on_root.txt: -------------------------------------------------------------------------------- 1 | < Cache-Control: no-cache, max-age=0 -------------------------------------------------------------------------------- /tests/use_max_age_0_if_max_age_is_broken_on_sub.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_max_age_0_if_max_age_is_broken_on_sub.sh -------------------------------------------------------------------------------- /tests/use_max_age_0_if_max_age_is_broken_on_sub.txt: -------------------------------------------------------------------------------- 1 | < Cache-Control: no-cache, max-age=0 -------------------------------------------------------------------------------- /tests/use_minimized_max_age_and_swr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_minimized_max_age_and_swr.sh -------------------------------------------------------------------------------- /tests/use_minimized_max_age_and_swr.txt: -------------------------------------------------------------------------------- 1 | < Cache-Control: max-age=45, stale-while-revalidate=5 -------------------------------------------------------------------------------- /tests/use_minimized_max_age_and_swr_do_not_override_swr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_minimized_max_age_and_swr_do_not_override_swr.sh -------------------------------------------------------------------------------- /tests/use_minimized_max_age_and_swr_do_not_override_swr.txt: -------------------------------------------------------------------------------- 1 | < Cache-Control: max-age=45 -------------------------------------------------------------------------------- /tests/use_minimum_max_age.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_minimum_max_age.sh -------------------------------------------------------------------------------- /tests/use_minimum_max_age.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DracoBlue/lua-native-ssi-nginx/HEAD/tests/use_minimum_max_age.txt --------------------------------------------------------------------------------