Skip to content

Commit 126a86b

Browse files
committed
캐싱/압축 관련 부분 추가
1 parent 809ded5 commit 126a86b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

conf/cache_control

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#cache control
2+
# https://worldviewstory.tistory.com/entry/Nginx-%EC%BA%90%EC%8B%9C-%EC%84%A4%EC%A0%95-%EC%86%8D%EB%8F%84-%ED%96%A5%EC%83%81-%EB%B0%A9%EB%B2%95

conf/nginx.conf

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ http {
2929

3030
#keepalive_timeout 0;
3131
keepalive_timeout 65;
32-
33-
#gzip on;
32+
33+
# https://blog.lael.be/post/5917 => modify
34+
# gzip start
35+
gzip on;
36+
gzip_min_length 10240;
37+
gzip_buffers 32 32k;
38+
gzip_comp_level 9;
39+
gzip_types text/plain application/javascript text/xml text/css application/json text/plain application/rss+xml application/atom+xml;
40+
gzip_vary on;
41+
# gzip end
3442

3543
server {
3644
listen 80;

0 commit comments

Comments
 (0)