Comments (9)
Other than disabling caching of query strings, there isn't anything else to disable. Now a few images are displayed and none when you click into a title. I've completely removed it from cloudflare and from npm.
Other than locally, I can't get it work as expected. I'll just use it as a local resource and maybe someone will post a how to set it up properly with npm and cloudflare. I thank you for your time and your help.
from biblioreads.
Hello darkalchemy,
I was able to create an instance of BiblioReads with Docker and Nginx Proxy Manager, no custom configuration was required and it is working without any issues.
Are you able to access the instance without proxying through Cloudflare and see if the issue still persists.
from biblioreads.
I have not tried to set up on a public ip without cloudflare. This is the url https://biblioreads.thesources.xyz/ if you want to see what it's doing. I'm hoping someone will have encountered this and know how to resolve it.
I will set it up this weekend without cloudflare.
Thanks
I added an entry to /etc/hosts to bypass cloudflare and the issue remains the same, the images aren't loading.
Since it's working for you, I have to assume it's just me.
Thanks
from biblioreads.
I grabbed one of the image urls and pasted in the browser and it just returns forbidden. Is the image being proxied?
from biblioreads.
Yes, all images are proxied. What is the image url that is returning a forbidden status?
from biblioreads.
Every image here and all searches.
from biblioreads.
In the URL above &maxage=30d
is not included in the image URL it is a URL parameter for the proxy, which is why it returns a forbidden result when included.
The actually image url is: https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg
from biblioreads.
Did you look here? All of the images include that in the url and no images are displayed
<picture>
<source srcset="/img?url=https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg&output=webp&maxage=30d" type="image/webp" class="rounded-lg shadow-sm drop-shadow-sm bg-white dark:bg-slate-800">
<source srcset="/img?url=https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg&maxage=30d" type="image/jpeg" class="rounded-lg shadow-sm drop-shadow-sm bg-white dark:bg-slate-800">
<img src="/img?url=https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg&maxage=30d" alt="The Hobbit (The Lord of the Rings, #0) book cover" width="98" height="148" class="rounded-lg border-2 shadow-sm drop-shadow-sm bg-white dark:bg-slate-800" loading="lazy">
</picture>
Thanks for taking the time to look at this.
from biblioreads.
&maxage=30d
is the cache URL parameter for the proxy and is included in the image src.
The original image URL is between the url=
and &
part of the image src. When being proxied only the original URL is used, not the full image src.
For example, with https://biblioreads.thesources.xyz/img?url=https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg&output=webp&maxage=30d
the original image URL that will be proxied is https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216i/5907.jpg
nothing else is included.
The images on the search page return a 204 No Content
success status instead of the expected 200 OK
success status. The 204 No Content
means that the server has successfully fulfilled the request and there's no additional content to send in the response payload, this is why the images are not displayed.
Copying and opening the image link in a new tab returns the expected success status and the image is shown on the search page (tested with Firefox 116.0.2). This may have something to do with Cloudflare, can you try turning off any Cloudflare image/content optimizations or caching like Rocket Loader?
from biblioreads.
Related Issues (14)
- [Feature] Add book editions (and format selectors) to book pages HOT 3
- [Feature] Scrape All Books By Author HOT 1
- [Instance] biblioreads.privacyfucking.rocks HOT 1
- [Feature] Add get a copy/buy links HOT 1
- [Instance] https://read.freedit.eu/ HOT 1
- [Instance] https://biblioreads.ducks.party/ HOT 1
- [Other] Upgrade to NextJS App router? HOT 1
- [Instance] HOT 1
- [Feature] Integration with Library Extension on Mozilla Firefox HOT 1
- [Feature] Automatically redirect search results HOT 1
- [OTHER] Consider mirroring the repos to Codeberg HOT 2
- Remove instance of "Esmail EL BoB" HOT 1
- New Instance: read.whateveritworks.org HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biblioreads.