Add option to *not* cache-bust #70

Closed
opened 2016-06-23 14:10:01 -05:00 by tremby · 5 comments
tremby commented 2016-06-23 14:10:01 -05:00 (Migrated from github.com)

Requests have a timestamp added to the end at https://github.com/MoOx/pjax/blob/master/lib/request.js#L15, presumably to get around caches. I don't want to get around caches in this way, since my pages are static. It would be good to have an option to skip adding this query string.

Requests have a timestamp added to the end at https://github.com/MoOx/pjax/blob/master/lib/request.js#L15, presumably to get around caches. I don't want to get around caches in this way, since my pages are static. It would be good to have an option to skip adding this query string.
MoOx commented 2016-06-23 15:15:20 -05:00 (Migrated from github.com)

PR welcome :)

PR welcome :)
tremby commented 2016-06-23 15:31:13 -05:00 (Migrated from github.com)

How do you get at the options from those lib files?

How do you get at the options from those lib files?
MoOx commented 2016-06-23 23:33:40 -05:00 (Migrated from github.com)
https://github.com/MoOx/pjax/blob/ee530f4c0a5f4f016f03601865ce36e386a0f7b1/lib/proto/parse-options.js
tremby commented 2016-06-24 03:22:57 -05:00 (Migrated from github.com)

this.options was the answer I was actually looking for, but that helped too -- thanks.

`this.options` was the answer I was actually looking for, but that helped too -- thanks.
tremby commented 2016-06-24 03:59:38 -05:00 (Migrated from github.com)

Closing in favour of pull request #71.

Closing in favour of pull request #71.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#70