这是indexloc提供的服务,不要输入任何密码
Skip to content

CRFS token in static javascript file getting cached, leading to errors. (RM #5663) #3688

@dpage

Description

@dpage

Issue migrated from Redmine: https://redmine.postgresql.org/issues/5663
Originally created by lucky donald at 2020-07-09 13:16:42 UTC.

I believe my docker deploy did work once, but after CRFS token in example.com/browser/js/utils.js needed to change, I'm getting 400 errors.

I'm running my docker reverse proxy behind Cloudflare, and they cache *.js files, as they are considered static.

Probably making that dynamic data available as *.json would solve that issue.

See "Understand file extensions cached by default": https://support.cloudflare.com/hc/en-us/articles/200172516-Understanding-Cloudflare-s-CDN#h_a01982d4-d5b6-4744-bb9b-a71da62c160a

Maybe also the Caching headers could be tweaked:
See "Understand Cloudflare's default cache behavior": https://support.cloudflare.com/hc/en-us/articles/200172516-Understanding-Cloudflare-s-CDN#h_51422705-42d0-450d-8eb1-5321dcadb5bc

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions