Score:0

nginx assets cache not working

bo flag

I try to add cache for all css/js files in nginx configuration file and i get error.

location ~* \.(css|js)$ {
    add_header Cache-Control public;
    add_header Pragma public;
    add_header Vary Accept-Encoding;
    expires 1M;  
}

the issue is - if I add "return 200 'Hello Test 5';" in the end of location block, I see my headers and expires 1M. But I need implement it without return

in flag
What's the error message you encounter?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.