Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.91k forks source link

Attachment - Loading occurs when the PDF is opened for the second time #52895

Open IuliiaHerets opened 17 hours ago

IuliiaHerets commented 17 hours ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.64-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5246483&group_by=cases:section_id&group_id=292107&group_order=asc Issue reported by: Applause Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in
  3. Upload a larger PDF (10-20MB) to any conversation
  4. Open the PDF
  5. Go back to the chat
  6. Open the same PDF again

Expected Result:

The PDF should appear instantly after opening it for the second time.

Actual Result:

PDF files aren't cached. They are downloaded every time a request is made.

Workaround:

Unknown

Platforms:

Screenshots/Videos

Bug6671545_1732171633175!English_Vocabulary_in_Use_Elementary_2017.pdf

https://github.com/user-attachments/assets/290c98d7-4814-41d3-9841-c7b43dffd742

View all open jobs on GitHub

melvin-bot[bot] commented 17 hours ago

Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

huult commented 14 hours ago

From my side, it still loads fast the second time it is opened. Maybe your browser has disabled the cache.

https://github.com/user-attachments/assets/6098d37a-25a9-4aea-af02-f2094883c3c7