# Regarding app caching when using AWS S3 presigned URLs

**URL:** <https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713>\
**Category:** Support\
**Created:** [June 4, 2024, 6:59am UTC](https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713 "2024-06-04T06:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![1195](https://discuss.appium.io/user_avatar/discuss.appium.io/1195/32/12388_2.png) [@1195](https://discuss.appium.io/u/1195)\
**Post date:** [June 4, 2024, 6:59am UTC](https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713/1 "2024-06-04T06:59:24Z")

</div>

Hello,

The AWS S3 presigned URL is in the format of “[https://address/bucket/filename.extension?presignedquery](https://address/bucket/filename.extension?presignedquery)…”  
and allows GET requests using the ETag. However, in Appium, the entire URL including the query is used as the cache key, making the caching functionality useless. It seems like using only the key up to “[https://address/bucket/filename.extension](https://address/bucket/filename.extension)”(without query) might work…  
Do you have any good ideas?  
Thank you.

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [June 4, 2024, 10:06am UTC](https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713/2 "2024-06-04T10:06:03Z")

</div>

I think this is a good idea to exclude the query part from the cache key. Please create a feature request

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [June 5, 2024, 7:16am UTC](https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713/3 "2024-06-05T07:16:50Z")

</div>

Hello @1195  
I have prepared a PR at [feat(base-driver): Make addition of search query params to cache keys optional by mykola-mokhnach · Pull Request #20195 · appium/appium · GitHub](https://github.com/appium/appium/pull/20195/files)  
The behavior is now controlled with the APPIUM\_APPS\_CACHE\_IGNORE\_URL\_QUERY environment variable. Could you please help with testing?

---

<div class="post-metadata">

**Author:** ![1195](https://discuss.appium.io/user_avatar/discuss.appium.io/1195/32/12388_2.png) [@1195](https://discuss.appium.io/u/1195)\
**Post date:** [June 9, 2024, 11:29pm UTC](https://discuss.appium.io/t/regarding-app-caching-when-using-aws-s3-presigned-urls/42713/4 "2024-06-09T23:29:35Z")

</div>

Verified that it works well and can be turned on and off depending on the environment settings in version 2.9.  
Thank you.
