Consumers sent sales on the High Street surging in May despite uncertainty over the EU referendum.
The Office for National Statistics (ONS) said the quantity of retail sales increased by 0.9% compared with April, and is up 6% on the same time last year.
Average store prices, including petrol stations, were down 2.8% on a year ago, and the amount spent was up 3.1% over the same time and 1.3% compared with the month before.
The value of online sales increased by 21.5% on a year ago, and 6.4% on April.
The above-expectation figures show consumers are paying little heed to warnings that the economy could nosedive following a Brexit vote next week, analysts said.
However, they also warned that strong sales had only been made possible by rapid price falls, and growth was likely to slow markedly in the second half of the year, regardless of the referendum result.
UFX.com managing director Dennis de Jong said: "Retail sales have been a little erratic over the past few months, but it's good news that May's figures have come in above expectation.
"Demand for household goods was likely to be weaker following the mad scramble to finalise property deals before the new stamp duty regulations were introduced in April.
"Even though there is plenty of uncertainty ahead of next week's EU referendum, consumers have still been spending on the high street which is what the Government needs."
IHS Global Insight said: "Should the UK vote to leave the EU in next Thursday's referendum, the strong suspicion is that consumer spending would be severely pressurised for some time as a consequence of increased uncertainty, likely higher unemployment and squeezed purchased power.
"It is probable purchasing power would be squeezed by inflation being pushed up markedly by a sharp fall in sterling."
Ian Gilmartin, head of retail and wholesale at Barclays, said May's figures were "the best result we've seen for some time".
"Although May's result is excellent, the summer season is a game of two halves and, just like the home nations in France, it's now crucial for the retail sector to get its set pieces right," he said.
"The ever-present variable that is the British weather will of course also play its part, and the referendum result on June 23 will undoubtedly have an impact, so it's not going to be easy to post such strong numbers in future months, especially as the underlying challenges that have made things difficult this year haven't gone away."
In separate figures, the IMRG Capgemini eRetail Sales Index revealed year-on-year online sales growth of 17% in May, the highest rate since June last year.
The report said the positive results suggested that the arrival of the hot weather had a more significant influence on shopper spending than uncertainty around the outcome of the EU referendum.
Tina Spooner, chief information officer at IMRG, said: "Uncertainty around the EU referendum doesn't appear to have had any impact on the UK e-retail sector, with the latest results from the IMRG Capgemini Index revealing strong growth in online sales during May.
"It seems the fine weather last month helped boost online clothing sales, with annual growth reaching the highest rate observed in three years, while the garden sector saw a much-needed return to growth after 14 consecutive months of decline, with sales surging 55% compared with May last year."