Nabu Internet Adapter Cache HTTP Extra Hits

News, updates, and discussions around the official NABU.CA RetroNET Internet Adapter.
Post Reply
User avatar
AGMS
Posts: 51
Joined: Tue Feb 20, 2024 9:56 pm

Nabu Internet Adapter Cache HTTP Extra Hits

Post by AGMS »

Using the Internet Adapter version 2025.02.07.00, I see that when I open a file that's a HTTP URL, it hits the web server twice on subsequent accesses, after it has downloaded the content (presumably once to see if the file exists via rn_fileSize(), and a second time for rn_fileOpen()). Happens every time that URL is opened, even if it's just a couple of seconds later. Can you cache HTTP content? Maybe have a setting for cache validity time in seconds.

- Alex

In case you are wondering what the web server headers look like, there's a date in the past and no expiry info:

Code: Select all

curl -v http://www.agmsmith.ca/NTHPONG/TITLE.LEVEL
* Host www.agmsmith.ca:80 was resolved.
* IPv6: (none)
* IPv4: 192.168.174.36
*   Trying 192.168.174.36:80...
* Connected to www.agmsmith.ca (192.168.174.36) port 80
* using HTTP/1.x
> GET /NTHPONG/TITLE.LEVEL HTTP/1.1
> Host: www.agmsmith.ca
> User-Agent: curl/8.11.1
> Accept: */*
> 
* Request completely sent off
< HTTP/1.1 200 OK
< Server: nginx/1.26.0
< Date: Sun, 21 Dec 2025 22:07:59 GMT
< Content-Type: application/octet-stream
< Content-Length: 442
< Last-Modified: Fri, 19 Dec 2025 01:09:17 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< ETag: "6944a5bd-1ba"
< Accept-Ranges: bytes
< 
# Load the Nth Pong Wars title screen, it's a full screen picture.
GameMode: Trivia
Music: ONECOLN1
ScreenFull: TITLESCREEN
User avatar
AGMS
Posts: 51
Joined: Tue Feb 20, 2024 9:56 pm

Re: Nabu Internet Adapter Cache HTTP Extra Hits

Post by AGMS »

Noticing that the cache is all uppercase file names, I wonder if it is a bug related to names in the cache being compared to mixed case for the URL?
User avatar
AGMS
Posts: 51
Joined: Tue Feb 20, 2024 9:56 pm

Re: Nabu Internet Adapter Cache HTTP Extra Hits

Post by AGMS »

Nope, tried an all upper case URL and it still hits the web server every access, despite having cached the content.
Post Reply