api-pagination icon indicating copy to clipboard operation
api-pagination copied to clipboard

Missing "last" on Link header

Open seidelmaycon opened this issue 5 years ago • 1 comments

Hi folks, first of all, thanks for providing this awesome resource.

Recently I updated the api-pagination from 4.8.1 to 4.8.2 and some unit tests started to fail.

We were used to receiving first, last, prev and next on the Link header. But after the upgrade to the last version the last option disappeared from Link header.

Let me know if I am doing any confusion and/or am missing any optional configuration. Also, I could provide more information if it's necessary.

Thank you.

seidelmaycon avatar Mar 18 '19 17:03 seidelmaycon

Hmmm my guess is this is due to #107… Are you configuring api-pagination to not include the Total header? The main reason that people configure this is due to expensive queries for the sizes of large tables, which the rel="last" URL does as well, so merging #107 made sense to me

davidcelis avatar Mar 18 '19 19:03 davidcelis