View Issue Details

IDProjectCategoryView StatusLast Update
0001759AJAX/JSBug Report - Interfacepublic2016-01-27 19:19
Reporterbiggrospif Assigned ToDerIdiot  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0001759: Select all checkbox of mylist file table does not check above checkbox
DescriptionIn mylist, when opening an anime with "show files" options, a file table is generated. In the table, we have different control button like delete, mark as watched and others.
There is a column of checkbox, used by the combobox at the bottom to do an action on a set of files. The checkbox "select all" left of the action combobox and "update selected files" don't work anymore.
When I select it, above checkbox are not selected. If I click the button with "edit(more option)", I can see that there is no file fid selected.
This is probably due to the modification to make this table dynamic (remove/add column, change order)
TagsNo tags attached.

Activities

2010-02-20 23:19

 

capture2.png (131,757 bytes)   
capture2.png (131,757 bytes)   

DerIdiot

2010-02-21 03:47

administrator   ~0003065

clear your browser cache

biggrospif

2010-02-27 20:38

reporter   ~0003067

After I cleared my browser cache, the problem was resolved. This issue was probably because the html (recent) code used code from the javascript file (old from cache).

Even if cleaning my cache resolved the problem, this is not the best solution, because I think AniDb is updated quite often.
I did a little search on html cache and found that there could be a solution : using "Cache-Control: must-revalidate" in http header. Source : http://www.webscalingblog.com/performance/caching-http-headers-last-modified-and-etag.html

I checked with my sniffer, when first requesting the page, the html document is sent, the script tag are requested
\t\t<script src="http://static.anidb.net/js/anidbscript.js" type="text/javascript"></script>\n
\t\t<script src="http://static.anidb.net/js/ajax.js" type="text/javascript"></script>\n

the server send there script with their Last-Modified: and ETag: value.
the http header of these script does not contains a cache-control value so the browser must choose what to do. In my case, the browser used the local cached files instead of re-downloading them from the web server.

By adding Cache-Control: must-revalidate to the http header of files like script,css, when the browser receive a new html page containing these script tag, it will ask the server if the file changed by providing a date and time and/or a unique value defining the file. The server check if the file changed from these value. If the file was not modified, it send back to the browser file not modified, else, will send the new file.

This way, at each new request, both of these script would be checked for new version. This cause a lot more network traffic on AniDB server and may increase the network bill but would future issue about cleaning your cache.

Issue History

Date Modified Username Field Change
2010-02-20 23:19 biggrospif New Issue
2010-02-20 23:19 biggrospif File Added: capture2.png
2010-02-21 03:47 DerIdiot Note Added: 0003065
2010-02-23 16:45 DerIdiot Project AniDB Website => AJAX/JS
2010-02-27 20:38 biggrospif Note Added: 0003067
2016-01-27 19:19 DerIdiot Status new => resolved
2016-01-27 19:19 DerIdiot Resolution open => fixed
2016-01-27 19:19 DerIdiot Assigned To => DerIdiot