![]() The problem is that sometimes I make changes to script.js and I want people using the bookmarklet to get the updated file to prevent problems.įor files loaded on my website, I overcome this issue by versioning the files, but I don't see how I could do that with the bookmarklet.Ĭlearly there is no way for the client to magically know that you have updated the script unless it checks the server. htaccess file to allow files to be cached: ĮxpiresByType image/x-icon "access plus 1 year"ĮxpiresByType image/gif "access plus 1 month"ĮxpiresByType image/png "access plus 1 month"ĮxpiresByType image/jpg "access plus 1 month"ĮxpiresByType image/jpeg "access plus 1 month"ĮxpiresByType application/javascript "access plus 1 month" ![]() ![]() ![]() I have a bookmarklet that looks like this: javascript:(function())()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |