# Cache is unexpectedly fetched from another branch

**URL:** <https://travis-ci.community/t/cache-is-unexpectedly-fetched-from-another-branch/3859>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** caching\
**Created:** [June 23, 2019, 4:37am UTC](https://travis-ci.community/t/cache-is-unexpectedly-fetched-from-another-branch/3859 "2019-06-23T04:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lys](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/lys/32/1188_2.png) [@lys](https://travis-ci.community/u/lys)\
**Post date:** [June 23, 2019, 4:37am UTC](https://travis-ci.community/t/cache-is-unexpectedly-fetched-from-another-branch/3859/1 "2019-06-23T04:37:45Z")

</div>

In QuickChick/QuickChick, Job 1055.1 on branch `8.7` [attempted](https://travis-ci.org/QuickChick/QuickChick/jobs/549261966#L451) to fetch a cache, but there was no cache on that branch. It then [fetched](https://travis-ci.org/QuickChick/QuickChick/jobs/549261966#L453) another cache, which was [created](https://travis-ci.org/QuickChick/QuickChick/jobs/542931608#L3443) by Job 1050.1 on branch `8.9`.  
Is it a bug or feature that one branch can use cache from another?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [June 23, 2019, 4:42am UTC](https://travis-ci.community/t/cache-is-unexpectedly-fetched-from-another-branch/3859/2 "2019-06-23T04:42:42Z")

</div>

As per [https://docs.travis-ci.com/user/caching/#fetching-and-storing-caches](https://docs.travis-ci.com/user/caching/#fetching-and-storing-caches), `8.9` is used as a fallback because it’s set as the default branch for your Github repo.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 22, 2019, 9:11pm UTC](https://travis-ci.community/t/cache-is-unexpectedly-fetched-from-another-branch/3859/3 "2019-11-22T21:11:41Z")

</div>

9 posts were split to a new topic: [Disable fallback to default branch](https://travis-ci.community/t/disable-fallback-to-default-branch/6093)
