2
我試圖「利用瀏覽器緩存」來增加站點速度。 web應用程序託管在pythonanywhere,我想我需要配置nginx.conf文件,包括:在Pythonanywhere上配置nginx服務器
location ~* \.(css|js|gif|jpe?g|png)$ {
expires 168h;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
(從這裏開始:how to Leverage browser caching in django)
不過,我找不到任何地方conf文件。它不在/ etc/nginx中,/ usr/local/etc/usr/etc ...
這可以在pythonanywhere上完成嗎?