Welcome! Log In Create A New Profile

Advanced

Ngnix wont cache woff

Brent Clark
October 05, 2016 04:40AM
Good day Guys

Im struggling to get nginx to cache woff and woff2 file.

It would appear its the particular wordpress theme is set to not cache.
But I would like to override that.

Nothing I seem to do, works.

If someone could please review my work it would be appreciated.


bclark@bclark:~$ curl -I
http://$REMOVEDDOMAIN/wp-content/themes/REMOVED-v5-2/fonts/adelle_bold-webfont.woff
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 05 Oct 2016 08:28:31 GMT
Content-Type: application/font-woff
Content-Length: 41160
Connection: keep-alive
Last-Modified: Sun, 01 Nov 2015 15:02:55 GMT
ETag: "a0c8-5237bf49e7739"
Expires: Wed, 05 Oct 2016 09:28:31 GMT
Vary: User-Agent
Pragma: public
X-Powered-By: W3 Total Cache/0.9.4.1
Cache-Control: max-age=3600
X-Cache-Status: MISS
Accept-Ranges: bytes

Here is my code: http://pastebin.com/RAVKYipU

Kind Regards

Brent Clark



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Ngnix wont cache woff

Brent Clark October 05, 2016 04:40AM

Re: Ngnix wont cache woff

Francis Daly October 05, 2016 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready