More work on Flipcards with GPT

28 April 2024

When doing this development, remember the following:

  1. Refresh the File Manager page on my site
  2. Go into the web developer tool on firefox and reload the page — this is not always ncessary.
  3. One approach to circumvent 2 is to just append a date to the file being tested so that it is always diffrent.

When weird things happen

  • Make sure I haven’t overwritten </td> or </tr> etc tags
  • Make sure character encodings are consistent
  • Make sure GPT hasn’t changed the names of .js or .php files and functions.
  • Make sure caching is not causing problems… — for instance Javascript can cache ajax requests. One way around this is :

    Cache Prevention: Appended a timestamp query parameter (nocache) to the URL in the fetch request to ensure the browser fetches a new response each time without caching the result.

TO DO

  • At some point I need to figure out the reasons for using different encodings, determine what is best (i.e. the norm), and make sure all my pages are consistent.

Views: 2

Web Development

It has been ages since I’ve done anything, but I’m back.

I’m trying to implement a new version of flashcards.

Something strange is happening — it is a huge struggle to get… Firefox? My web platform?… to actually run new files I am uploading. It is some kind of cache or memory problem. It may be complicated by caches acting differently for html, php, javascript, etc.???

I think I have finally determined that if I open the page that I’ve changed in Firefox, go into to Browser Tools and choose Web Developer Tools and then hit refresh, the new changes will take effect.

That appears to work, but is cumbersome.

There should be a way to turn off caching altogether. I tried doing that, but it didn’t appear to work — I’m not sure if it turns it off at all, or only for particular windows in the browser, or what.

I think I may just need to step back and do a tutorial on web development… either that or figure out how to do development on MAMP, which I I think I had figured out a couple of years ago, but have now forgotten.

Yuck.


Next day. To ensure I have the latest code actually running I must:

  1. Refresh the File Manager page on my site
  2. Go into the web developer tool on firefox and reload the page.

It is not always necessary to do both or even either of these.

Views: 4