Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx changes #202

Merged
merged 3 commits into from
Apr 23, 2020
Merged

Nginx changes #202

merged 3 commits into from
Apr 23, 2020

Conversation

ShaneMcC
Copy link
Member

Description

I found https://github.com/gatsbyjs/gatsby-docker and https://www.gatsbyjs.org/docs/caching/ so I've made some changes to the base nginx config to include appropriate elements from each of those.

Realistically - How much difference this will make, given the reasonably small nature of everything, and that it's proxied via both cloudflare and the main site anyway is debatable, but it felt sane all the same ¯_(ツ)_/¯

@ShaneMcC
Copy link
Member Author

I was looking at what caching should/should not be done for gatsby based on the fact that currently we have pushed a change to Diseased/Courtesan (#198) but this has not been properly picked up on the live site due to over-zealous caching somewhere.

See: https://werewolv.es/guides/roles/Courtesan vs https://wwes-h2p.ds.df.vg/guides/roles/Courtesan even though the first should be proxying the second.

Further: https://werewolv.es/guides/page-data/roles/Courtesan/page-data.json vs https://wwes-h2p.ds.df.vg/guides/page-data/roles/Courtesan/page-data.json

(Seems not everything has a hash-based filename - gatsbyjs/gatsby#15080 or so)

@StormPooper StormPooper merged commit 6b5c71c into werewolv-es:site Apr 23, 2020
@StormPooper
Copy link
Member

If this doesn't work we can poke Mark to look at Cloudflare options.

@ShaneMcC
Copy link
Member Author

Yeah we're still having some issues - #203 is still cached wrong somewhere in the chain:

https://werewolv.es/guides/page-data/roles/Werewolf/page-data.json
vs
https://wwes-h2p.ds.df.vg/guides/page-data/roles/Werewolf/page-data.json

Now this could be because the old data was cached before the changes were put in place, but even force-refreshing, or adding a query-param doesn't seem to pass through whatever is caching it.

@StormPooper
Copy link
Member

Suggest @Kirschstein tries to clear the cache as per their support page and if that works we can automate it via their API as part of the deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants