wp1 icon indicating copy to clipboard operation
wp1 copied to clipboard

Css/js resources should be cached in browser

Open kelson42 opened this issue 6 years ago • 6 comments

proper Http response header should be set

kelson42 avatar Oct 01 '20 08:10 kelson42

Hey @kelson42 , please assign me this issue, I would start building this soon, I want to be a part of Gsoc'2021 . This could be a good start for me.

yashikajotwani12 avatar Mar 19 '21 03:03 yashikajotwani12

@yashikajotwani12 What do you propose to do to fix this issue?

kelson42 avatar Mar 19 '21 07:03 kelson42

Hello @kelson42,I would Like to Contribute to this issue so that i can Submit a Proposal to GSOC through Kiwix.org.Can i Work on this or Is Someone Else working Currently?

abdulmoiz37 avatar Apr 08 '21 00:04 abdulmoiz37

@abdulmoiz37 You can work on this. Better explain here first how you plan to fix the problem.

kelson42 avatar Apr 08 '21 10:04 kelson42

Hey is the issue resolved? I would love to contribute

jahnavi0625 avatar Apr 08 '25 06:04 jahnavi0625

@jahnavi0625 see responses above. How do you plan to solve it?

audiodude avatar Apr 08 '25 16:04 audiodude

Can you explain the issue in detail pls @kelson42

its-me-maady avatar Mar 19 '26 17:03 its-me-maady

I can explain it. Basically, we want our CSS and JS assets to be served from the nginx proxy Docker image with the Cahe-Control headers set appropriately.

audiodude avatar Mar 21 '26 16:03 audiodude

You can even get inspiration from https://github.com/openzim/zimfarm/pull/1537/changes (might need to be adapted to WP1 context obviously)

benoit74 avatar Mar 21 '26 19:03 benoit74

Hi @audiodude and @benoit74 , I'd like to work on this. My plan: create a cache.conf file in docker/frontend/ with Cache-Control: public, max-age=31536000, immutable and expires 1y for .css and .js assets, following the same pattern as gzip.conf. Add it to the Dockerfile alongside the existing gzip config. Will open a PR shortly.

its-me-maady avatar Mar 22 '26 05:03 its-me-maady

PR open: #1124.

its-me-maady avatar Mar 22 '26 06:03 its-me-maady

Hi, I’m new to the project and would like to work on this issue. Could you please guide me on where to start?

poorvisnp01-dotcom avatar Mar 22 '26 17:03 poorvisnp01-dotcom