capybara - Poltergeist Rspec If-None-Match If-Modified-Since headers -


i have feature spec makes 2 visit requests same url. expected behavior second request should return 304. not happening however. have set phantomjs_options: ['--disk-cache=true'] not seem have desired effect. there other setting needs configured use if-none-match , if-modified-since headers?

an example below:

visit "/p/:id" page.driver.status_code.should eq 200 visit "/p/:id" page.driver.status_code.should eq 304 

thanks,

i not sure this. i'd suggest testing using phantomjs see if can replicate issue there - if file bug against phantomjs.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -