nextcloud / nextcloud/text

Image Caching

Open
#7,318 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: attachments needs discussion performance 🚀
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.

When switching between notes the images within the notes are downloaded again. The sessionId and sessionToken values in the image URLs change when switching notes. I understand that this is done for increased security and session hijacking. But I have notes with 50+ not-so-small images and opening such a note takes sometimes 30 seconds until I can really use the note. The image link itself works for some time even when a new sessionId was created.

Describe the solution you'd like

Ensure that the sessionId and sessionToken values stay the same, e.g. for 5 minutes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where image URLs and the sessionId/sessionToken values are generated when switching notes. Verify that switching notes reuses those values for five minutes, that images load without repeated downloads, and that the existing security behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.