Open abhishek77in opened 4 years ago
PDF js files are heavy and using CDN would improve the performance.
Hi, upon further investigations I can see assets on which stylesheet_link_tag
eg is used are setting the cache-control
headers correctly but assets which are linked directly do not set any cache-control
headers eg.
This is an issue in production as viewer loads several different static files (around 35 files) which have to be downloaded from the origin server instead of being downloaded via the CDN.
I have configured CDN for my app, but pdf.worker.js and other static files are still hitting the rails server. How do I avoid this?